Module: Cucumber::Parser::PyString::PyString2

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

Instance Method Summary collapse

Instance Method Details

#at_line?(line) ⇒ Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/cucumber/parser/py_string.rb', line 39

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

#build(filter = nil) ⇒ Object



43
44
45
# File 'lib/cucumber/parser/py_string.rb', line 43

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