Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/json-endure/string.rb

Instance Method Summary collapse

Instance Method Details

#coax_into_jsonObject



5
6
7
8
9
# File 'lib/json-endure/string.rb', line 5

def coax_into_json()
  str = self.clone
  str.coax_into_json!()
  return str
end

#coax_into_json!Object



11
12
13
# File 'lib/json-endure/string.rb', line 11

def coax_into_json!()
  self.replace(JSON.endure(self))
end