Class: CLu256
- Includes:
- CLValueBytesParsers::CLU256BytesParser
- Defined in:
- lib/types/cl_u256.rb
Instance Method Summary collapse
- #get_cl_type ⇒ Object
- #get_value ⇒ Object
-
#initialize(value) ⇒ CLu256
constructor
A new instance of CLu256.
Methods included from CLValueBytesParsers::CLU256BytesParser
Constructor Details
#initialize(value) ⇒ CLu256
Returns a new instance of CLu256.
10 11 12 13 14 |
# File 'lib/types/cl_u256.rb', line 10 def initialize(value) raise "error" unless value.instance_of? Integer super @value = value end |
Instance Method Details
#get_cl_type ⇒ Object
16 17 18 19 |
# File 'lib/types/cl_u256.rb', line 16 def get_cl_type @cl_type = CLU256Type.new @cl_type.to_string end |
#get_value ⇒ Object
21 22 23 |
# File 'lib/types/cl_u256.rb', line 21 def get_value @value end |