Class: KPeg::CompiledParser::RuleInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/kpeg/compiled_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, rendered) ⇒ RuleInfo

Returns a new instance of RuleInfo.



319
320
321
322
# File 'lib/kpeg/compiled_parser.rb', line 319

def initialize(name, rendered)
  @name = name
  @rendered = rendered
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



324
325
326
# File 'lib/kpeg/compiled_parser.rb', line 324

def name
  @name
end

#renderedObject (readonly)

Returns the value of attribute rendered.



324
325
326
# File 'lib/kpeg/compiled_parser.rb', line 324

def rendered
  @rendered
end