Class/Module Index [+]

Quicksearch

Cucumber::JsSupport

Public Class Methods

argument_safe_string(string) click to toggle source
# File lib/cucumber/js_support/js_language.rb, line 8
def self.argument_safe_string(string)
  arg_string = string.to_s.gsub(/[']/, '\\\')
  "'#{arg_string.gsub("\n", '\n')}'"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.