Class: Gherkin::Formatter::Model::Match
- Defined in:
- lib/gherkin/formatter/model.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(arguments, location) ⇒ Match
constructor
A new instance of Match.
- #replay(formatter) ⇒ Object
Methods inherited from Hashable
Constructor Details
#initialize(arguments, location) ⇒ Match
Returns a new instance of Match.
257 258 259 |
# File 'lib/gherkin/formatter/model.rb', line 257 def initialize(arguments, location) @arguments, @location = arguments, location end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
255 256 257 |
# File 'lib/gherkin/formatter/model.rb', line 255 def arguments @arguments end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
255 256 257 |
# File 'lib/gherkin/formatter/model.rb', line 255 def location @location end |
Instance Method Details
#replay(formatter) ⇒ Object
261 262 263 |
# File 'lib/gherkin/formatter/model.rb', line 261 def replay(formatter) formatter.match(self) end |