lib/rake/funnel/extensions/case/camel_case.rb in rake-funnel-0.3.2.pre vs lib/rake/funnel/extensions/case/camel_case.rb in rake-funnel-0.4.0.pre
- old
+ new
@@ -1,19 +1,24 @@
-module Rake::Funnel::Extensions
- module CamelCase
- def camelize
- self
- .to_s
- .split('_')
- .inject([]) { |buffer, e| buffer.push(buffer.empty? ? e : e.capitalize) }
- .join
- end
- end
-end
-
-class String
- include Rake::Funnel::Extensions::CamelCase
-end
-
-class Symbol
- include Rake::Funnel::Extensions::CamelCase
-end
+module Rake
+ module Funnel
+ module Extensions
+ module Case
+ module CamelCase
+ def camelize
+ to_s
+ .split('_')
+ .inject([]) { |buffer, e| buffer.push(buffer.empty? ? e : e.capitalize) }
+ .join
+ end
+ end
+ end
+ end
+ end
+end
+
+class String
+ include Rake::Funnel::Extensions::Case::CamelCase
+end
+
+class Symbol
+ include Rake::Funnel::Extensions::Case::CamelCase
+end