Class: Gherkin::Formatter::Model::Match

Inherits:
Hashable
  • Object
show all
Defined in:
lib/gherkin/formatter/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Hashable

#to_hash

Constructor Details

#initialize(arguments, location) ⇒ Match

Returns a new instance of Match.



199
200
201
# File 'lib/gherkin/formatter/model.rb', line 199

def initialize(arguments, location)
  @arguments, @location = arguments, location
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



197
198
199
# File 'lib/gherkin/formatter/model.rb', line 197

def arguments
  @arguments
end

#locationObject (readonly)

Returns the value of attribute location.



197
198
199
# File 'lib/gherkin/formatter/model.rb', line 197

def location
  @location
end

Instance Method Details

#replay(formatter) ⇒ Object



203
204
205
# File 'lib/gherkin/formatter/model.rb', line 203

def replay(formatter)
  formatter.match(self)
end