Class: KPeg::StringEscape::RuleInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, rendered) ⇒ RuleInfo

Returns a new instance of RuleInfo.



377
378
379
380
# File 'lib/kpeg/string_escape.rb', line 377

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



382
383
384
# File 'lib/kpeg/string_escape.rb', line 382

def name
  @name
end

#renderedObject (readonly)

Returns the value of attribute rendered.



382
383
384
# File 'lib/kpeg/string_escape.rb', line 382

def rendered
  @rendered
end