D
Dave Rose
in The Ruby Way...chap 1...a crude example of closure doesn't work as
this irb
session:NoMethodError: undefined method `square' for main:Object
from (irb):7NoMethodError: undefined method `square' for main:Object
from (irb):8SyntaxError: compile error
(irb):10: syntax error
from (irb):10NoMethodError: undefined method `square' for main:Object
..futhermore...where (if it's implied...) is base come into play
here....
this irb
session:NoMethodError: undefined method `square' for main:Object
from (irb):7NoMethodError: undefined method `square' for main:Object
from (irb):8SyntaxError: compile error
(irb):10: syntax error
from (irb):10NoMethodError: undefined method `square' for main:Object
..futhermore...where (if it's implied...) is base come into play
here....