Class: NullMeta

Inherits:
Meta
  • Object
show all
Defined in:
lib/meta/null_meta.rb

Instance Method Summary collapse

Methods inherited from Meta

deserialize

Constructor Details

#initializeNullMeta

Returns a new instance of NullMeta.



17
18
19
# File 'lib/meta/null_meta.rb', line 17

def initialize()
  @type = :null
end

Instance Method Details

#load(value) ⇒ Object

Parameters:

  • value (NilClass)


24
25
26
# File 'lib/meta/null_meta.rb', line 24

def load(value)
  # No need to load a value for null meta.
end

#serializeObject



28
29
30
31
32
# File 'lib/meta/null_meta.rb', line 28

def serialize()
  {
    :type => @type,
  }
end