Module: GoldenFleece::Model::Context::ClassMethods
- Defined in:
- lib/golden_fleece/model/context.rb
Instance Attribute Summary collapse
-
#fleece_context ⇒ Object
readonly
Returns the value of attribute fleece_context.
Instance Method Summary collapse
Instance Attribute Details
#fleece_context ⇒ Object (readonly)
Returns the value of attribute fleece_context.
15 16 17 |
# File 'lib/golden_fleece/model/context.rb', line 15 def fleece_context @fleece_context end |
Instance Method Details
#fleece(&block) ⇒ Object
17 18 19 20 |
# File 'lib/golden_fleece/model/context.rb', line 17 def fleece(&block) fleece_context.instance_eval(&block) fleece_context.run_setup_callbacks unless fleece_context.has_run_setup end |