Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/util.rb
Instance Method Summary collapse
Instance Method Details
#to_camel_case(split_on = '-') ⇒ Object
30 31 32 |
# File 'lib/util.rb', line 30 def to_camel_case(split_on='-') self.split(split_on).collect{|e| e.capitalize}.join(split_on) end |