Class: Gherkin::Formatter::Argument

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Hashable

#to_hash

Constructor Details

#initialize(offset, val) ⇒ Argument

Creates a new Argument that starts at character offset offset with value val



11
12
13
# File 'lib/gherkin/formatter/argument.rb', line 11

def initialize(offset, val)
  @offset, @val = offset, val
end

Instance Attribute Details

#offsetObject (readonly)

Returns the value of attribute offset.



8
9
10
# File 'lib/gherkin/formatter/argument.rb', line 8

def offset
  @offset
end

#valObject (readonly)

Returns the value of attribute val.



8
9
10
# File 'lib/gherkin/formatter/argument.rb', line 8

def val
  @val
end