Module: Namlet::MemorizedHelpers::ClassMethods
- Defined in:
- lib/namlet/memorized_helpers.rb
Instance Method Summary collapse
Instance Method Details
#let(name, &block) ⇒ Object
9 10 11 12 |
# File 'lib/namlet/memorized_helpers.rb', line 9 def let(name, &block) super("___wrapped_#{name}".to_sym, &block) super(name.to_sym) { Namlet::Wrapper.new(name.to_sym, send("___wrapped_#{name}".to_sym)) } end |