lib/cucumber/ast/py_string.rb in cucumber-0.7.0.beta.2 vs lib/cucumber/ast/py_string.rb in cucumber-0.7.0.beta.3
- old
+ new
@@ -47,17 +47,17 @@
def initialize(string)
@string = string
end
- def to_s
+ def to_step_definition_arg
@string
end
def accept(visitor)
return if Cucumber.wants_to_quit
- visitor.visit_py_string(to_s)
+ visitor.visit_py_string(@string)
end
def arguments_replaced(arguments) #:nodoc:
string = @string
arguments.each do |name, value|
@@ -71,10 +71,10 @@
@string.index(text)
end
# For testing only
def to_sexp #:nodoc:
- [:py_string, to_s]
+ [:py_string, to_step_definition_arg]
end
end
end
end