Class: Gherkin::Formatter::Model::Comment

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(value, line) ⇒ Comment

Returns a new instance of Comment.



159
160
161
# File 'lib/gherkin/formatter/model.rb', line 159

def initialize(value, line)
  @value, @line = value, line
end

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



157
158
159
# File 'lib/gherkin/formatter/model.rb', line 157

def line
  @line
end

#valueObject (readonly)

Returns the value of attribute value.



157
158
159
# File 'lib/gherkin/formatter/model.rb', line 157

def value
  @value
end