Module: AngryHash::DSL
- Included in:
- AngryHash
- Defined in:
- lib/angry_hash/dsl.rb
Defined Under Namespace
Classes: BasicObject, Env
Instance Method Summary collapse
Instance Method Details
#__eval_as_dsl(&blk) ⇒ Object
38 39 40 41 42 |
# File 'lib/angry_hash/dsl.rb', line 38 def __eval_as_dsl(&blk) env = Env.new env.instance_eval(&blk) deep_update(env.__store) end |