Sha256: 80588df8c2019d2c698d7e0fd529fc7dec6856483a29125f7c1413448dce0c41
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
# Wx::SF::Serializer - Ruby core serializer extensions # Copyright (c) M.J.N. Corino, The Netherlands # we do not include Wx::SF::Serializer::SerializeMethod here as that would # also extend these classes with the engine specific extension that we do not # need or want here class Array def serialize(io = nil, pretty: false, format: Wx::SF::Serializable.default_format) Wx::SF::Serializable[format].dump(self, io, pretty: pretty) end end class Hash def serialize(io = nil, pretty: false, format: Wx::SF::Serializable.default_format) Wx::SF::Serializable[format].dump(self, io, pretty: pretty) end end class Struct def serialize(io = nil, pretty: false, format: Wx::SF::Serializable.default_format) Wx::SF::Serializable[format].dump(self, io, pretty: pretty) end end require 'set' class Set def serialize(io = nil, pretty: false, format: Wx::SF::Serializable.default_format) Wx::SF::Serializable[format].dump(self, io, pretty: pretty) end end require 'ostruct' class OpenStruct def serialize(io = nil, pretty: false, format: Wx::SF::Serializable.default_format) Wx::SF::Serializable[format].dump(self, io, pretty: pretty) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wxruby3-shapes-0.9.0.pre.beta.3 | lib/wx/shapes/serialize/core.rb |