Module: Kernel
- Defined in:
- lib/localone.rb
Instance Method Summary collapse
Instance Method Details
#let(options, &proc) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/localone.rb', line 25 def let(, &proc) fakescope = Localone::Let.anonyslate .each do |k,v| fakescope.class.send(:define_method, k) { v } end fakescope.instance_eval &proc end |