Class: Lrama::Precedence
- Inherits:
-
Struct
- Object
- Struct
- Lrama::Precedence
- Includes:
- Comparable
- Defined in:
- lib/lrama/grammar.rb
Instance Attribute Summary collapse
-
#precedence ⇒ Object
Returns the value of attribute precedence.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#precedence ⇒ Object
Returns the value of attribute precedence
260 261 262 |
# File 'lib/lrama/grammar.rb', line 260 def precedence @precedence end |
#type ⇒ Object
Returns the value of attribute type
260 261 262 |
# File 'lib/lrama/grammar.rb', line 260 def type @type end |
Instance Method Details
#<=>(other) ⇒ Object
263 264 265 |
# File 'lib/lrama/grammar.rb', line 263 def <=>(other) self.precedence <=> other.precedence end |