lib/cucumber/ast/py_string.rb in cucumber-0.3.0 vs lib/cucumber/ast/py_string.rb in cucumber-0.3.1
- old
+ new
@@ -41,10 +41,14 @@
value ||= ''
string = string.gsub(name, value)
end
PyString.new(@start_line, @end_line, string, @quotes_indent)
end
-
+
+ def has_text?(text)
+ @string.index(text)
+ end
+
# For testing only
def to_sexp #:nodoc:
[:py_string, to_s]
end
end