Class: String
Instance Method Summary (collapse)
-
- (Object) classify
......................................................................................................
-
- (Object) humanize
......................................................................................................
Instance Method Details
- (Object) classify
......................................................................................................
5 6 7 |
# File 'lib/agent_xmpp/patches/string.rb', line 5 def classify split('_').collect{|s| s.capitalize}.join end |
- (Object) humanize
......................................................................................................
10 11 12 |
# File 'lib/agent_xmpp/patches/string.rb', line 10 def humanize gsub(/_/, ' ') end |