lib/skellington/helpers.rb in skellington-0.1.3 vs lib/skellington/helpers.rb in skellington-0.1.4
- old
+ new
@@ -1,7 +1,5 @@
module Skellington
def self.camelise worm_case
- parts = worm_case.split '_'
- parts.map! { |word| "#{word[0].upcase}#{word[1..-1]}" }
- parts.join ''
+ worm_case.split('_').map! { |word| "#{word[0].upcase}#{word[1..-1]}" }.join ''
end
end