Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/cons.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_cons(cons) ⇒ Object



53
54
55
# File 'lib/cons.rb', line 53

def from_cons cons
  cons.to_a
end

Instance Method Details

#to_consObject



48
49
50
# File 'lib/cons.rb', line 48

def to_cons
  Cons.from_array self
end