Module: FIRM
- Defined in:
- lib/firm/version.rb,
lib/firm/serializable.rb,
lib/firm/serialize/id.rb,
lib/firm/serialize/core.rb,
lib/firm/serializer/xml.rb,
lib/firm/serializer/json.rb,
lib/firm/serializer/yaml.rb
Overview
FIRM - multiple output ruby object serializer
Copyright © M.J.N. Corino, The Netherlands
Defined Under Namespace
Modules: Serializable
Constant Summary collapse
- VERSION =
FIRM version
"1.1.2"
Class Method Summary collapse
-
.deserialize(source, format: Serializable.default_format) ⇒ Object
Deserializes object from source data.
-
.serialize(obj, io = nil, pretty: false, format: Serializable.default_format) ⇒ Object
Serialize the given object.
Class Method Details
.deserialize(source, format: Serializable.default_format) ⇒ Object
Deserializes object from source data
789 790 791 |
# File 'lib/firm/serializable.rb', line 789 def self.deserialize(source, format: Serializable.default_format) Serializable.deserialize(source, format: format) end |
.serialize(obj, pretty: false, format: Serializable.default_format) ⇒ String .serialize(obj, io, pretty: false, format: Serializable.default_format) ⇒ IO
Serialize the given object
781 782 783 |
# File 'lib/firm/serializable.rb', line 781 def self.serialize(obj, io = nil, pretty: false, format: Serializable.default_format) Serializable.serialize(obj, io, pretty: pretty, format: format) end |