Module: Treetop::Compiler::InlineModuleMixin
- Included in:
- InlineModule, SequenceElementAccessorModule
- Defined in:
- lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/node_classes/inline_module.rb
Instance Attribute Summary collapse
-
#module_name ⇒ Object
readonly
Returns the value of attribute module_name.
Instance Method Summary collapse
Instance Attribute Details
#module_name ⇒ Object (readonly)
Returns the value of attribute module_name.
4 5 6 |
# File 'lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/node_classes/inline_module.rb', line 4 def module_name @module_name end |
Instance Method Details
#compile(index, builder, rule) ⇒ Object
6 7 8 |
# File 'lib/puppet_x/wildfly/gems/treetop-1.6.8/lib/treetop/compiler/node_classes/inline_module.rb', line 6 def compile(index, builder, rule) @module_name = "#{rule.name.treetop_camelize}#{index}" end |