Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/orgrep/string.rb
Overview
extend String class
Instance Method Summary collapse
Instance Method Details
#camelize ⇒ Object
6 7 8 |
# File 'lib/orgrep/string.rb', line 6 def camelize split("_").map(&:capitalize).join end |
#compact ⇒ Object
10 11 12 |
# File 'lib/orgrep/string.rb', line 10 def compact split(" ").join end |