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


257
258
259
# File 'lib/gherkin/formatter/model.rb', line 257

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

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments


255
256
257
# File 'lib/gherkin/formatter/model.rb', line 255

def arguments
  @arguments
end

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