Class: IntegerMeta

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

Instance Method Summary collapse

Constructor Details

#initializeIntegerMeta

Returns a new instance of IntegerMeta.



5
6
7
# File 'lib/meta/IntegerMeta.rb', line 5

def initialize()
  @value = nil
end

Instance Method Details

#load(value) ⇒ Object

Parameters:

  • value (Integer)


12
13
14
# File 'lib/meta/IntegerMeta.rb', line 12

def load(value)
  @value = value
end

#resultObject



16
17
18
19
20
21
# File 'lib/meta/IntegerMeta.rb', line 16

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