Class: String

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

Instance Method Summary collapse

Instance Method Details

#quote(quote = '"') ⇒ Object



2
3
4
# File 'lib/extensions.rb', line 2

def quote(quote = '"')
  [quote, self, quote].map(&:to_s).join
end