Class: Reflekt::NullMeta
Instance Method Summary collapse
-
#initialize ⇒ NullMeta
constructor
A new instance of NullMeta.
- #load(value) ⇒ Object
- #serialize ⇒ Object
Methods inherited from Meta
Constructor Details
#initialize ⇒ NullMeta
Returns a new instance of NullMeta.
18 19 20 |
# File 'lib/meta/null_meta.rb', line 18 def initialize() @type = :null end |
Instance Method Details
#load(value) ⇒ Object
25 26 27 |
# File 'lib/meta/null_meta.rb', line 25 def load(value) # No need to load a value for null meta. end |
#serialize ⇒ Object
29 30 31 32 33 |
# File 'lib/meta/null_meta.rb', line 29 def serialize() { :type => @type, } end |