class Nydp::Builtin::StringReplace

Public Instance Methods

builtin_call(remove, insert, str) click to toggle source
# File lib/nydp/builtin/string_replace.rb, line 4
def builtin_call remove, insert, str
  str.to_s.to_s.gsub Regexp.new(remove.to_ruby), insert.to_ruby
end