module FlickRaw::Util
Public Instance Methods
safe_for_eval?(string)
click to toggle source
# File lib/flickraw/util.rb, line 9 def safe_for_eval?(string) string == sanitize(string) end
sanitize(string)
click to toggle source
# File lib/flickraw/util.rb, line 5 def sanitize(string) string.gsub(/\W+/, '_') if string end