Class: Packer::Macro
- Inherits:
-
Object
show all
- Defined in:
- lib/packer/macro.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object
6
7
8
9
|
# File 'lib/packer/macro.rb', line 6
def method_missing(method_name, *args)
name = method_name.to_s.slice(0,1).capitalize + method_name.to_s.slice(1..-1)
"{{ .#{name} }}"
end
|
Instance Method Details
#respond_to?(symbol, include_private = false) ⇒ Boolean
15
16
17
18
|
# File 'lib/packer/macro.rb', line 15
def respond_to?(symbol, include_private=false)
true
end
|
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
11
12
13
|
# File 'lib/packer/macro.rb', line 11
def respond_to_missing?(method_name, include_private = false)
true
end
|