Class: Abstractivator::Cons::Cell
- Defined in:
- lib/abstractivator/cons.rb
Instance Method Summary collapse
- #head ⇒ Object
-
#initialize(h, t) ⇒ Cell
constructor
A new instance of Cell.
- #tail ⇒ Object
Methods inherited from Array
Constructor Details
#initialize(h, t) ⇒ Cell
Returns a new instance of Cell.
43 44 45 |
# File 'lib/abstractivator/cons.rb', line 43 def initialize(h, t) super([h, t]) end |
Instance Method Details
#head ⇒ Object
47 48 49 |
# File 'lib/abstractivator/cons.rb', line 47 def head first end |
#tail ⇒ Object
51 52 53 |
# File 'lib/abstractivator/cons.rb', line 51 def tail last end |