Class: 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.
17 18 19 |
# File 'lib/meta/NullMeta.rb', line 17 def initialize() @type = :null end |
Instance Method Details
#load(value) ⇒ Object
24 25 26 |
# File 'lib/meta/NullMeta.rb', line 24 def load(value) # No need to load a value for null meta. end |
#serialize ⇒ Object
28 29 30 31 32 |
# File 'lib/meta/NullMeta.rb', line 28 def serialize() { :type => @type, } end |