Module: LazyModule::ClassMethods
- Defined in:
- lib/extlib/lazy_module.rb
Instance Attribute Summary collapse
-
#lazy_evaluated_body ⇒ Object
Returns the value of attribute lazy_evaluated_body.
Instance Method Summary collapse
Instance Attribute Details
#lazy_evaluated_body ⇒ Object
Returns the value of attribute lazy_evaluated_body.
13 14 15 |
# File 'lib/extlib/lazy_module.rb', line 13 def lazy_evaluated_body @lazy_evaluated_body end |
Instance Method Details
#included(host) ⇒ Object
14 15 16 |
# File 'lib/extlib/lazy_module.rb', line 14 def included(host) host.class_eval(&@lazy_evaluated_body) end |