class Gherkin::Formatter::Model::DocString
Attributes
content_type[R]
line[R]
value[R]
Public Class Methods
new(value, content_type, line)
click to toggle source
# File lib/gherkin/formatter/model.rb, line 220 def initialize(value, content_type, line) @value, @content_type, @line = value, content_type, line end
Public Instance Methods
line_range()
click to toggle source
# File lib/gherkin/formatter/model.rb, line 224 def line_range line_count = value.split(/\r?\n/).length line..(line+line_count+1) end