Class: Rake::InvocationChain::EmptyInvocationChain

Inherits:
LinkedList::EmptyLinkedList show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/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

Methods included from Enumerable

#as_json, #compact_blank, #exclude?, #excluding, #in_order_of, #including, #index_by, #index_with, #many?, #maximum, #minimum, #pick, #pluck, #sole, #sum

Constructor Details

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

Instance Method Details

#append(invocation) ⇒ Object



46
47
48
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/invocation_chain.rb', line 46

def append(invocation)
  conj(invocation)
end

#member?(obj) ⇒ Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/invocation_chain.rb', line 42

def member?(obj)
  false
end

#to_sObject



50
51
52
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/lib/rake/invocation_chain.rb', line 50

def to_s
  "TOP"
end