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

::Rake::LinkedList::EmptyLinkedList - Inherited

::Rake::LinkedList - Inherited

#empty?

Is the list empty? .make guards against a list being empty making any instantiated ::Rake::LinkedList object not empty by default You should consider overriding this method if you implement your own .make method.

#head, #tail

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 46

def append(invocation)
  conj(invocation)
end

#member?(obj) ⇒ Boolean

[ GitHub ]

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

def member?(obj)
  false
end

#to_s

[ GitHub ]

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

def to_s
  "TOP"
end