Class: Lrama::Grammar::PercentCode
- Inherits:
-
Object
- Object
- Lrama::Grammar::PercentCode
- Defined in:
- lib/lrama/grammar/percent_code.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, code) ⇒ PercentCode
constructor
A new instance of PercentCode.
Constructor Details
#initialize(name, code) ⇒ PercentCode
Returns a new instance of PercentCode.
8 9 10 11 |
# File 'lib/lrama/grammar/percent_code.rb', line 8 def initialize(name, code) @name = name @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/lrama/grammar/percent_code.rb', line 6 def code @code end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/lrama/grammar/percent_code.rb', line 6 def name @name end |