Class: BooleanMeta

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

Instance Method Summary collapse

Constructor Details

#initializeBooleanMeta

Returns a new instance of BooleanMeta.



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

def initialize()
  @value = nil
end

Instance Method Details

#load(value) ⇒ Object

Parameters:

  • value (Boolean)


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

def load(value)
  @value = value
end

#resultObject



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

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