Method: Resque#classify
- Defined in:
- lib/resque.rb
#classify(dashed_word) ⇒ Object
Given a word with dashes, returns a camel cased version of it.
classify(‘job-name’) # => ‘JobName’
60 61 62 |
# File 'lib/resque.rb', line 60 def classify(dashed_word) dashed_word.split('-').map(&:capitalize).join end |