Module: LazyModule::ClassMethods

Defined in:
lib/extlib/lazy_module.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lazy_evaluated_bodyObject

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