Class: FloatMeta

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

Instance Method Summary collapse

Methods inherited from Meta

deserialize

Constructor Details

#initializeFloatMeta

Returns a new instance of FloatMeta.



5
6
7
8
9
10
# File 'lib/meta/FloatMeta.rb', line 5

def initialize()

  @type = :float
  @value = nil

end

Instance Method Details

#load(value) ⇒ Object

Parameters:

  • value (Float)


15
16
17
# File 'lib/meta/FloatMeta.rb', line 15

def load(value)
  @value = value
end

#serializeObject



19
20
21
22
23
24
# File 'lib/meta/FloatMeta.rb', line 19

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