Class: CLi32

Inherits:
CLValue show all
Includes:
CLValueBytesParsers::CLI32BytesParser
Defined in:
lib/types/cl_i32.rb

Instance Method Summary collapse

Methods included from CLValueBytesParsers::CLI32BytesParser

#from_bytes, #to_bytes

Methods inherited from CLValue

#to_hash

Constructor Details

#initialize(value) ⇒ CLi32

Returns a new instance of CLi32.



10
11
12
13
14
# File 'lib/types/cl_i32.rb', line 10

def initialize(value)
  raise "error" unless value.instance_of? Integer
  super
  @value =  value
end

Instance Method Details

#get_cl_typeObject



16
17
18
19
# File 'lib/types/cl_i32.rb', line 16

def get_cl_type
  @cl_type = CLI32Type.new
  @cl_type.to_string
end

#get_valueObject



21
22
23
# File 'lib/types/cl_i32.rb', line 21

def get_value
  @value  
end