Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/rhoconnect/model/js_base.rb

Instance Method Summary collapse

Instance Method Details

#classifyObject



110
111
112
113
114
115
116
# File 'lib/rhoconnect/model/js_base.rb', line 110

def classify
  result = self.split("_").inject("") do |res,index|
    res += index.capitalize
    res
  end
  result
end