Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/bombay/string.rb

Overview

Provides some helpful methods for strings

Instance Method Summary collapse

Instance Method Details

#expandObject

Expands $HOME.



11
12
13
# File 'lib/bombay/string.rb', line 11

def expand
  gsub("$HOME", Dir.home)
end

#unquoteObject

Unquotes a string.



6
7
8
# File 'lib/bombay/string.rb', line 6

def unquote
  tr('"', "")
end