Class: String

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

Instance Method Summary collapse

Instance Method Details

#to_ascii_plistObject



3
4
5
6
7
8
9
# File 'lib/vendor/extensions/string.rb', line 3

def to_ascii_plist
  if length == 0
    "\"\""
  else
    match(/\-|\s|\+|\<|\$|\"|\[|\=|\*|@/) ? self.inspect : self
  end
end