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.
212 213 214 |
# File 'lib/gherkin/formatter/model.rb', line 212 def initialize(arguments, location) @arguments, @location = arguments, location end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
210 211 212 |
# File 'lib/gherkin/formatter/model.rb', line 210 def arguments @arguments end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
210 211 212 |
# File 'lib/gherkin/formatter/model.rb', line 210 def location @location end |
Instance Method Details
#replay(formatter) ⇒ Object
216 217 218 |
# File 'lib/gherkin/formatter/model.rb', line 216 def replay(formatter) formatter.match(self) end |