Module: ExpressTemplates::Macro::InstanceMethods
- Defined in:
- lib/express_templates/macro.rb
Instance Method Summary collapse
Instance Method Details
#initialize(*children_or_options) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/express_templates/macro.rb', line 19 def initialize(*) @children = [] @options = {}.with_indifferent_access # expander passes itself as last arg @expander = .pop if .last.kind_of?(ExpressTemplates::Expander) _process(*) end |
#macro_name ⇒ Object
17 |
# File 'lib/express_templates/macro.rb', line 17 def macro_name ; self.class.macro_name end |