lib/cucumber/ast/py_string.rb in square-cucumber-0.3.12.2 vs lib/cucumber/ast/py_string.rb in square-cucumber-0.3.93.1
- old
+ new
@@ -15,11 +15,10 @@
# example above, that would return: <tt>"I like\nCucumber sandwich"</tt>
#
# Note how the indentation from the source is stripped away.
#
class PyString
-
def self.default_arg_name
"string"
end
def initialize(start_line, end_line, string, quotes_indent)
@@ -30,9 +29,10 @@
def to_s
@string.indent(-@quotes_indent)
end
def accept(visitor)
+ return if $cucumber_interrupted
visitor.visit_py_string(to_s)
end
def arguments_replaced(arguments) #:nodoc:
string = @string