Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/reputation.rb
Instance Method Summary collapse
Instance Method Details
#camelize ⇒ Object
51 52 53 |
# File 'lib/reputation.rb', line 51 def camelize self.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase } end |
#trim ⇒ Object
55 56 57 |
# File 'lib/reputation.rb', line 55 def trim self.gsub(/^ +/, '') end |