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.



212
213
214
# File 'lib/gherkin/formatter/model.rb', line 212

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

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



210
211
212
# File 'lib/gherkin/formatter/model.rb', line 210

def arguments
  @arguments
end

#locationObject (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