Class: Gherkin::Token
- Inherits:
-
Struct
- Object
- Struct
- Gherkin::Token
- Defined in:
- lib/gherkin/token.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
Returns the value of attribute line.
-
#location ⇒ Object
Returns the value of attribute location.
-
#matched_gherkin_dialect ⇒ Object
Returns the value of attribute matched_gherkin_dialect.
-
#matched_indent ⇒ Object
Returns the value of attribute matched_indent.
-
#matched_items ⇒ Object
Returns the value of attribute matched_items.
-
#matched_keyword ⇒ Object
Returns the value of attribute matched_keyword.
-
#matched_text ⇒ Object
Returns the value of attribute matched_text.
-
#matched_type ⇒ Object
Returns the value of attribute matched_type.
Instance Method Summary collapse
Instance Attribute Details
#line ⇒ Object
Returns the value of attribute line
2 3 4 |
# File 'lib/gherkin/token.rb', line 2 def line @line end |
#location ⇒ Object
Returns the value of attribute location
2 3 4 |
# File 'lib/gherkin/token.rb', line 2 def location @location end |
#matched_gherkin_dialect ⇒ Object
Returns the value of attribute matched_gherkin_dialect.
3 4 5 |
# File 'lib/gherkin/token.rb', line 3 def matched_gherkin_dialect @matched_gherkin_dialect end |
#matched_indent ⇒ Object
Returns the value of attribute matched_indent.
3 4 5 |
# File 'lib/gherkin/token.rb', line 3 def matched_indent @matched_indent end |
#matched_items ⇒ Object
Returns the value of attribute matched_items.
3 4 5 |
# File 'lib/gherkin/token.rb', line 3 def matched_items @matched_items end |
#matched_keyword ⇒ Object
Returns the value of attribute matched_keyword.
3 4 5 |
# File 'lib/gherkin/token.rb', line 3 def matched_keyword @matched_keyword end |
#matched_text ⇒ Object
Returns the value of attribute matched_text.
3 4 5 |
# File 'lib/gherkin/token.rb', line 3 def matched_text @matched_text end |
#matched_type ⇒ Object
Returns the value of attribute matched_type.
3 4 5 |
# File 'lib/gherkin/token.rb', line 3 def matched_type @matched_type end |
Instance Method Details
#detach ⇒ Object
10 11 12 |
# File 'lib/gherkin/token.rb', line 10 def detach # TODO: detach line - is this needed? end |
#eof? ⇒ Boolean
6 7 8 |
# File 'lib/gherkin/token.rb', line 6 def eof? line.nil? end |
#token_value ⇒ Object
14 15 16 |
# File 'lib/gherkin/token.rb', line 14 def token_value eof? ? "EOF" : line.get_line_text(-1) end |