Class: Reflekt::NullMeta

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

Instance Method Summary collapse

Methods inherited from Meta

deserialize, numeric?

Constructor Details

#initializeNullMeta

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

Parameters:

  • value (NilClass)


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

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

#serializeObject



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

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