Class: RJSON::String

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

Instance Method Summary collapse

Instance Method Details

#encode_json(encoder) ⇒ Object



3
4
5
6
# File 'lib/rjson/string.rb', line 3

def encode_json(encoder)
  # Don't encode, we're a JSON string already
  self
end