class String
Public Instance Methods
camelize()
click to toggle source
# File lib/vx/worker/ext/string.rb, line 6 def camelize split("_").each {|s| s.capitalize! }.join("") end
compact()
click to toggle source
# File lib/vx/worker/ext/string.rb, line 2 def compact gsub(/\n/, ' ').gsub(/ +/, ' ').strip end