Module: JSON::TruffleRuby::Generator::GeneratorMethods::String::Extend
- Defined in:
- lib/json/truffle_ruby/generator.rb
Overview
Module that holds the extending methods if, the String module is included.
Instance Method Summary collapse
-
#json_create(o) ⇒ Object
Raw Strings are JSON Objects (the raw bytes are stored in an array for the key “raw”).
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.
584 585 586 |
# File 'lib/json/truffle_ruby/generator.rb', line 584 def json_create(o) o['raw'].pack('C*') end |