Class: Lrama::Grammar::Precedence
- Inherits:
-
Struct
- Object
- Struct
- Lrama::Grammar::Precedence
- Includes:
- Comparable
- Defined in:
- lib/lrama/grammar/precedence.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
3 4 5 |
# File 'lib/lrama/grammar/precedence.rb', line 3 def precedence @precedence end |
#type ⇒ Object
Returns the value of attribute type
3 4 5 |
# File 'lib/lrama/grammar/precedence.rb', line 3 def type @type end |
Instance Method Details
#<=>(other) ⇒ Object
6 7 8 |
# File 'lib/lrama/grammar/precedence.rb', line 6 def <=>(other) self.precedence <=> other.precedence end |