Class: String
Public Visibility
Public Instance Method Summary
#camel_case |
---|
Public Instance Method Details
camel_case
public
camel_case
[View source]
2 3 4 |
# File 'lib/octopi/base.rb', line 2 def camel_case self.gsub(/(^|_)(.)/) { $2.upcase } end |