Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/bombay/string.rb
Overview
Provides some helpful methods for strings
Instance Method Summary collapse
-
#expand ⇒ Object
Expands $HOME.
-
#unquote ⇒ Object
Unquotes a string.
Instance Method Details
#expand ⇒ Object
Expands $HOME.
11 12 13 |
# File 'lib/bombay/string.rb', line 11 def gsub("$HOME", Dir.home) end |
#unquote ⇒ Object
Unquotes a string.
6 7 8 |
# File 'lib/bombay/string.rb', line 6 def unquote tr('"', "") end |