Module: Cucumber::Parser::Feature::PyString2

Defined in:
lib/cucumber/parser/feature.rb

Instance Method Summary collapse

Instance Method Details

#at_line?(line) ⇒ Boolean

Returns:

  • (Boolean)


1528
1529
1530
# File 'lib/cucumber/parser/feature.rb', line 1528

def at_line?(line)
  line >= open_py_string.line && line <= close_py_string.line
end

#buildObject



1532
1533
1534
# File 'lib/cucumber/parser/feature.rb', line 1532

def build
  Ast::PyString.new(open_py_string.line, close_py_string.line, s.text_value, open_py_string.indentation)
end