class Lab42::Console::Cons
Attributes
car[R]
cdr[R]
Public Class Methods
new(car, cdr)
click to toggle source
# File lib/lab42/console/cons.rb, line 13 def initialize(car, cdr) @car = car @cdr = cdr end
Public Instance Methods
apply_to_cdr(fun)
click to toggle source
# File lib/lab42/console/cons.rb, line 7 def apply_to_cdr(fun) self.class.new(car, fun.(cdr)) end