Class: Rake::LinkedList::EmptyLinkedList
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
| Subclasses: | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: 
          self,
          ::Rake::LinkedList
         | |
| Instance Chain: 
          self,
          ::Rake::LinkedList,
          Enumerable
         | |
| Inherits: | Rake::LinkedList 
 | 
| Defined in: | lib/rake/linked_list.rb | 
Overview
Represent an empty list, using the Null Object Pattern.
When inheriting from the ::Rake::LinkedList class, you should implement a type specific Empty class as well. Make sure you set the class instance variable @parent to the associated list class (this allows conj, cons and make to work polymorphically).
Constant Summary
::Rake::LinkedList - Inherited
Class Method Summary
- .cons(head, tail)
- .new ⇒ EmptyLinkedList constructor
::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
- #empty? ⇒ Boolean readonly
::Rake::LinkedList - Inherited
Instance Method Summary
::Rake::LinkedList - Inherited
Constructor Details
    .new  ⇒ EmptyLinkedList 
  
# File 'lib/rake/linked_list.rb', line 97
def initialize end
Class Method Details
.cons(head, tail)
[ GitHub ]Instance Attribute Details
    #empty?  ⇒ Boolean  (readonly)
  
  [ GitHub ]
# File 'lib/rake/linked_list.rb', line 100
def empty? true end