Class: Gherkin3::ParserContext
- Inherits:
-
Object
- Object
- Gherkin3::ParserContext
- Defined in:
- lib/gherkin3/parser.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#token_matcher ⇒ Object
readonly
Returns the value of attribute token_matcher.
-
#token_queue ⇒ Object
readonly
Returns the value of attribute token_queue.
-
#token_scanner ⇒ Object
readonly
Returns the value of attribute token_scanner.
Instance Method Summary collapse
-
#initialize(token_scanner, token_matcher, token_queue, errors) ⇒ ParserContext
constructor
A new instance of ParserContext.
Constructor Details
#initialize(token_scanner, token_matcher, token_queue, errors) ⇒ ParserContext
Returns a new instance of ParserContext.
52 53 54 55 56 57 |
# File 'lib/gherkin3/parser.rb', line 52 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
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
50 51 52 |
# File 'lib/gherkin3/parser.rb', line 50 def errors @errors end |
#token_matcher ⇒ Object (readonly)
Returns the value of attribute token_matcher.
50 51 52 |
# File 'lib/gherkin3/parser.rb', line 50 def token_matcher @token_matcher end |
#token_queue ⇒ Object (readonly)
Returns the value of attribute token_queue.
50 51 52 |
# File 'lib/gherkin3/parser.rb', line 50 def token_queue @token_queue end |
#token_scanner ⇒ Object (readonly)
Returns the value of attribute token_scanner.
50 51 52 |
# File 'lib/gherkin3/parser.rb', line 50 def token_scanner @token_scanner end |