Class: Reflekt::ObjectMeta
Instance Method Summary collapse
-
#initialize ⇒ ObjectMeta
constructor
A new instance of ObjectMeta.
- #load(value) ⇒ Object
- #serialize ⇒ Object
Methods inherited from Meta
Constructor Details
#initialize ⇒ ObjectMeta
Returns a new instance of ObjectMeta.
15 16 17 18 |
# File 'lib/meta/object_meta.rb', line 15 def initialize() @type = :object @class_type = nil end |
Instance Method Details
#load(value) ⇒ Object
23 24 25 |
# File 'lib/meta/object_meta.rb', line 23 def load(value) @class_type = value.class end |
#serialize ⇒ Object
27 28 29 30 31 32 |
# File 'lib/meta/object_meta.rb', line 27 def serialize() { :type => @type, :class_type => @class_type } end |