Method: String#quote

Defined in:
lib/mkmf.rb

#quoteObject

Wraps a string in escaped quotes if it contains whitespace.



12
13
14
# File 'lib/mkmf.rb', line 12

def quote
  /\s/ =~ self ? "\"#{self}\"" : "#{self}"
end