Class: UtopiaData::DSL
- Inherits:
-
Object
- Object
- UtopiaData::DSL
- Defined in:
- lib/utopia_data/dsl.rb
Overview
The UtopiaData DSL. This class is where all the registration blocks are instance eval’d. This is the central place for the API given to users of UtopiaData
Direct Known Subclasses
Instance Method Summary collapse
-
#run_registration_block(config, &block) ⇒ Object
Runs the registration block inside this object.
Instance Method Details
#run_registration_block(config, &block) ⇒ Object
Runs the registration block inside this object
31 32 33 34 |
# File 'lib/utopia_data/dsl.rb', line 31 def run_registration_block(config, &block) @config = config instance_eval &block if block_given? end |