class Gherkin::Formatter::Model::BasicStatement
Attributes
comments[R]
keyword[R]
line[R]
name[R]
Public Class Methods
new(comments, keyword, name, line)
click to toggle source
# File lib/gherkin/formatter/model.rb, line 10 def initialize(comments, keyword, name, line) @comments, @keyword, @name, @line = comments, keyword, name, line end
Public Instance Methods
first_non_comment_line()
click to toggle source
# File lib/gherkin/formatter/model.rb, line 19 def first_non_comment_line @line end
line_range()
click to toggle source
# File lib/gherkin/formatter/model.rb, line 14 def line_range first = @comments.any? ? @comments[0].line : first_non_comment_line first..line end