Class: Rake::InvocationChain::EmptyInvocationChain

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

Overview

Null object for an empty chain.

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?, #inspect, make

Constructor Details

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

Instance Method Details

#append(invocation) ⇒ Object



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

def append(invocation)
  conj(invocation)
end

#member?(obj) ⇒ Boolean

Returns:

  • (Boolean)


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

def member?(obj)
  false
end

#to_sObject



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

def to_s
  "TOP"
end