Module: Treetop::Compiler::InlineModuleMixin

Included in:
InlineModule, SequenceElementAccessorModule
Defined in:
lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/inline_module.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#module_nameObject (readonly)

Returns the value of attribute module_name.



4
5
6
# File 'lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/inline_module.rb', line 4

def module_name
  @module_name
end

Instance Method Details

#compile(index, rule, builder) ⇒ Object



6
7
8
# File 'lib/gems/treetop-1.2.4/lib/treetop/compiler/node_classes/inline_module.rb', line 6

def compile(index, rule, builder)
  @module_name = "#{rule.name.treetop_camelize}#{index}"
end