Class: UtopiaData::DSL

Inherits:
Object
  • Object
show all
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

ResourceDSL

Instance Method Summary collapse

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