lib/economic/support/string.rb in rconomic-0.4.1 vs lib/economic/support/string.rb in rconomic-0.5.0

- old
+ new

@@ -1,8 +1,12 @@ module Economic module Support module String + def self.camel_back(name) + name[0,1].downcase + name[1..-1] + end + def self.demodulize(class_name_in_module) class_name_in_module.to_s.gsub(/^.*::/, '') end def self.underscore(camel_cased_word) @@ -19,6 +23,6 @@ # Use the method from Savon::CoreExt::String.snakecase word.snakecase end end end -end \ No newline at end of file +end