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

Defined in:
lib/fiveruns/json/generator.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#fjson_create(o) ⇒ Object

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



349
350
351
# File 'lib/fiveruns/json/generator.rb', line 349

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