Class: Gherkin::TokenFormatterBuilder
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token_formatter_builder.rb
Instance Method Summary collapse
- #build(token) ⇒ Object
- #end_rule(rule_type) ⇒ Object
- #get_result ⇒ Object
-
#initialize ⇒ TokenFormatterBuilder
constructor
A new instance of TokenFormatterBuilder.
- #reset ⇒ Object
- #start_rule(rule_type) ⇒ Object
Constructor Details
#initialize ⇒ TokenFormatterBuilder
Returns a new instance of TokenFormatterBuilder.
3 4 5 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token_formatter_builder.rb', line 3 def initialize reset end |
Instance Method Details
#build(token) ⇒ Object
11 12 13 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token_formatter_builder.rb', line 11 def build(token) @tokens_text << "#{format_token(token)}\n" end |
#end_rule(rule_type) ⇒ Object
18 19 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token_formatter_builder.rb', line 18 def end_rule(rule_type) end |
#get_result ⇒ Object
21 22 23 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token_formatter_builder.rb', line 21 def get_result @tokens_text end |
#reset ⇒ Object
7 8 9 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token_formatter_builder.rb', line 7 def reset @tokens_text = "" end |
#start_rule(rule_type) ⇒ Object
15 16 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token_formatter_builder.rb', line 15 def start_rule(rule_type) end |