Module: Rea::Model
- Included in:
- Application
- Defined in:
- lib/rea/model.rb
Defined Under Namespace
Classes: Context
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
54 55 |
# File 'lib/rea/model.rb', line 54 def self.included base end |
Instance Method Details
#context ⇒ Object
61 62 63 |
# File 'lib/rea/model.rb', line 61 def context @context ||= Context.new end |
#model(&block) ⇒ Object
57 58 59 |
# File 'lib/rea/model.rb', line 57 def model &block self.context.instance_eval &block end |