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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, line) ⇒ Comment

Returns a new instance of Comment.



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

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

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



9
10
11
# File 'lib/gherkin/formatter/model.rb', line 9

def line
  @line
end

#valueObject (readonly)

Returns the value of attribute value.



9
10
11
# File 'lib/gherkin/formatter/model.rb', line 9

def value
  @value
end