Module: HashMap::ToDSL
- Defined in:
- lib/hash_map/dsl.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
3
4
5
6
7
8
9
|
# File 'lib/hash_map/dsl.rb', line 3
def method_missing(method, *args, &block)
if dsl.respond_to?(method)
dsl.send(method, *args, &block)
else
super
end
end
|
Instance Method Details
#_set_attributes_from_inheritance(attrs) ⇒ Object
19
20
21
|
# File 'lib/hash_map/dsl.rb', line 19
def _set_attributes_from_inheritance(attrs)
dsl._set_attributes(attrs.deep_dup)
end
|
#attributes ⇒ Object
15
16
17
|
# File 'lib/hash_map/dsl.rb', line 15
def attributes
dsl.attributes
end
|
#dsl ⇒ Object
11
12
13
|
# File 'lib/hash_map/dsl.rb', line 11
def dsl
@dsl ||= DSL.new
end
|