Class: ABNF::Compiler::Rule::Alternative::Match
- Inherits:
-
Struct
- Object
- Struct
- ABNF::Compiler::Rule::Alternative::Match
- Defined in:
- lib/abnf/compiler/rule/alternative.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
Returns the value of attribute node.
-
#stream_position ⇒ Object
Returns the value of attribute stream_position.
Instance Method Summary collapse
Instance Attribute Details
#node ⇒ Object
Returns the value of attribute node
35 36 37 |
# File 'lib/abnf/compiler/rule/alternative.rb', line 35 def node @node end |
#stream_position ⇒ Object
Returns the value of attribute stream_position
35 36 37 |
# File 'lib/abnf/compiler/rule/alternative.rb', line 35 def stream_position @stream_position end |
Instance Method Details
#<=>(match) ⇒ Object
36 37 38 |
# File 'lib/abnf/compiler/rule/alternative.rb', line 36 def <=> match stream_position <=> match.stream_position end |