Module: JSON::Pure::Generator::GeneratorMethods::String::Extend

Defined in:
lib/crazy_ivan/vendor/json-1.1.7/lib/json/pure/generator.rb

Overview

Module that holds the extinding methods if, the String module is included.

Instance Method Summary collapse

Instance Method Details

#json_create(o) ⇒ Object

Raw Strings are JSON Objects (the raw bytes are stored in an array for the key “raw”). The Ruby String can be created by this module method.



385
386
387
# File 'lib/crazy_ivan/vendor/json-1.1.7/lib/json/pure/generator.rb', line 385

def json_create(o)
  o['raw'].pack('C*')
end