lib/rake/funnel/extensions/case/pascal_case.rb in rake-funnel-0.3.2.pre vs lib/rake/funnel/extensions/case/pascal_case.rb in rake-funnel-0.4.0.pre

- old
+ new

@@ -1,19 +1,24 @@ -module Rake::Funnel::Extensions - module PascalCase - def pascalize - self - .to_s - .split('_') - .inject([]) { |buffer, e| buffer.push(e.slice(0, 1).capitalize + e.slice(1..-1)) } - .join - end - end -end - -class String - include Rake::Funnel::Extensions::PascalCase -end - -class Symbol - include Rake::Funnel::Extensions::PascalCase -end +module Rake + module Funnel + module Extensions + module Case + module PascalCase + def pascalize + to_s + .split('_') + .inject([]) { |buffer, e| buffer.push(e.slice(0, 1).capitalize + e.slice(1..-1)) } + .join + end + end + end + end + end +end + +class String + include Rake::Funnel::Extensions::Case::PascalCase +end + +class Symbol + include Rake::Funnel::Extensions::Case::PascalCase +end