Module: Treetop::Compiler::InlineModuleMixin

Included in:
InlineModule, SequenceElementAccessorModule
Defined in:
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/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/treetop/compiler/node_classes/inline_module.rb', line 6

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