Class: Gherkin::ParserContext

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token_scanner, token_matcher, token_queue, errors) ⇒ ParserContext

Returns a new instance of ParserContext.



48
49
50
51
52
53
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/parser.rb', line 48

def initialize(token_scanner, token_matcher, token_queue, errors)
  @token_scanner = token_scanner
  @token_matcher = token_matcher
  @token_queue = token_queue
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



46
47
48
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/parser.rb', line 46

def errors
  @errors
end

#token_matcherObject (readonly)

Returns the value of attribute token_matcher.



46
47
48
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/parser.rb', line 46

def token_matcher
  @token_matcher
end

#token_queueObject (readonly)

Returns the value of attribute token_queue.



46
47
48
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/parser.rb', line 46

def token_queue
  @token_queue
end

#token_scannerObject (readonly)

Returns the value of attribute token_scanner.



46
47
48
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/parser.rb', line 46

def token_scanner
  @token_scanner
end