Module: Cuttlebone::Definition::DSL

Defined in:
lib/cuttlebone/definition.rb

Instance Method Summary collapse

Instance Method Details

#context(object, options = {}, &definition) ⇒ Object



5
6
7
# File 'lib/cuttlebone/definition.rb', line 5

def context object, options={}, &definition
  Cuttlebone.definitions << Definition.new(object, options, &definition)
end