Class: Mappum::DSL::RootMap
Instance Attribute Summary
Attributes inherited from Map
Instance Method Summary collapse
-
#initialize(name, source = nil) ⇒ RootMap
constructor
A new instance of RootMap.
- #make_definition(&block) ⇒ Object
Methods inherited from Map
#`, #const, #context, #func, #map, #map_when, #name_map, #name_map_prefix, #to_array_take, #tree
Constructor Details
Instance Method Details
#make_definition(&block) ⇒ Object
145 146 147 148 |
# File 'lib/mappum/dsl.rb', line 145 def make_definition &block instance_eval(&block) @def end |