Class: Gherkin::Token
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/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
Methods inherited from Struct
Instance Attribute Details
#line ⇒ Object
Returns the value of attribute line
2 3 4 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token.rb', line 2 def line @line end |
#location ⇒ Object
Returns the value of attribute location
2 3 4 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token.rb', line 3 def matched_type @matched_type end |
Instance Method Details
#detach ⇒ Object
10 11 12 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token.rb', line 10 def detach # TODO: detach line - is this needed? end |
#eof? ⇒ Boolean
6 7 8 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token.rb', line 6 def eof? line.nil? end |
#token_value ⇒ Object
14 15 16 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token.rb', line 14 def token_value eof? ? "EOF" : line.get_line_text(-1) end |