Class: Rake::InvocationChain::EmptyInvocationChain

Inherits:
LinkedList::EmptyLinkedList show all
Defined in:
lib/rake/invocation_chain.rb

Overview

Null object for an empty chain.

Constant Summary

Constants inherited from LinkedList

LinkedList::EMPTY

Instance Attribute Summary

Attributes inherited from LinkedList

#head, #tail

Instance Method Summary collapse

Methods inherited from LinkedList::EmptyLinkedList

cons, #empty?, #initialize

Methods inherited from LinkedList

#==, #conj, cons, #each, empty, #empty?, #initialize, #inspect, make

Constructor Details

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

Instance Method Details

#append(invocation) ⇒ Object



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

def append(invocation)
  conj(invocation)
end

#member?(obj) ⇒ Boolean

Returns:

  • (Boolean)


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

def member?(obj)
  false
end

#to_sObject



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

def to_s
  "TOP"
end