Class: CLBool

Inherits:
CLValue show all
Includes:
Boolean, CLValueBytesParsers::CLBoolBytesParser
Defined in:
lib/types/cl_bool.rb

Instance Method Summary collapse

Methods included from CLValueBytesParsers::CLBoolBytesParser

#from_bytes, #to_bytes

Methods inherited from CLValue

#to_hash

Constructor Details

#initialize(value) ⇒ CLBool

Returns a new instance of CLBool.



13
14
15
16
17
# File 'lib/types/cl_bool.rb', line 13

def initialize(value)
  super
  raise "error" unless value.is_a?(Boolean)
  @value =  value
end

Instance Method Details

#get_cl_tagObject



24
25
26
# File 'lib/types/cl_bool.rb', line 24

def get_cl_tag
  CLBoolType.get_tag
end

#get_cl_typeObject



19
20
21
22
# File 'lib/types/cl_bool.rb', line 19

def get_cl_type
  @cl_bool_type = CLBoolType.new(true)
  @cl_bool_type.to_string
end

#get_valueObject



28
29
30
# File 'lib/types/cl_bool.rb', line 28

def get_value
  @value  
end