Class: CLTuple3Type
Constant Summary
Constants inherited
from CLType
CLType::TAGS
Instance Method Summary
collapse
Methods inherited from CLTupleType
#get_data
Methods inherited from CLType
#get_cl_type_tag, #get_link_to, #get_tag_key, #get_tag_value, #get_tags, #tag_value_isvalid
Constructor Details
#initialize(value = nil) ⇒ CLTuple3Type
Returns a new instance of CLTuple3Type.
85
86
87
88
|
# File 'lib/types/cl_tuple_type.rb', line 85
def initialize(value = nil)
super(value)
@value = value
end
|
Instance Method Details
#get_value ⇒ Object
95
96
97
|
# File 'lib/types/cl_tuple_type.rb', line 95
def get_value
@value
end
|
#to_bytes ⇒ Object
103
104
105
|
# File 'lib/types/cl_tuple_type.rb', line 103
def to_bytes
[20].pack("C*").unpack1("H*")
end
|
#to_json ⇒ Object
99
100
101
|
# File 'lib/types/cl_tuple_type.rb', line 99
def to_json
to_string
end
|
#to_string ⇒ Object
90
91
92
93
|
# File 'lib/types/cl_tuple_type.rb', line 90
def to_string
TAGS.key(20).to_s
end
|