123456789_123456789_123456789_123456789_123456789_

Class: Rake::InvocationChain::EmptyInvocationChain

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Rake::LinkedList::EmptyLinkedList
Defined in: lib/rake/invocation_chain.rb

Overview

Null object for an empty chain.

Constant Summary

::Rake::LinkedList - Inherited

EMPTY

Class Method Summary

::Rake::LinkedList::EmptyLinkedList - Inherited

::Rake::LinkedList - Inherited

.cons

Cons a new head onto the tail list.

.empty

The standard empty list class for the given ::Rake::LinkedList class.

.make

Make a list out of the given arguments.

.new

Instance Attribute Summary

Instance Method Summary

::Rake::LinkedList - Inherited

#==

Lists are structurally equivalent.

#conj

Polymorphically add a new element to the head of a list.

#each

For each item in the list.

#inspect

Same as #to_s, but with inspected items.

#to_s

Convert to string: LL(item, item…).

Constructor Details

This class inherits a constructor from Rake::LinkedList::EmptyLinkedList

Instance Method Details

#append(invocation)

[ GitHub ]

  
# File 'lib/rake/invocation_chain.rb', line 45

def append(invocation)
  conj(invocation)
end

#member?(obj) ⇒ Boolean

[ GitHub ]

  
# File 'lib/rake/invocation_chain.rb', line 41

def member?(obj)
  false
end

#to_s

[ GitHub ]

  
# File 'lib/rake/invocation_chain.rb', line 49

def to_s
  "TOP"
end