Module: PSON::Pure::Generator::GeneratorMethods::String::Extend
- Defined in:
- lib/vendor/puppet/external/pson/pure/generator.rb
Overview
Module that holds the extinding methods if, the String module is included.
Instance Method Summary collapse
-
#pson_create(o) ⇒ Object
Raw Strings are PSON Objects (the raw bytes are stored in an array for the key “raw”).
Instance Method Details
#pson_create(o) ⇒ Object
Raw Strings are PSON Objects (the raw bytes are stored in an array for the key “raw”). The Ruby String can be created by this module method.
356 357 358 |
# File 'lib/vendor/puppet/external/pson/pure/generator.rb', line 356 def pson_create(o) o['raw'].pack('C*') end |