class IcAgent::Candid::NullClass
Represents an IDL Null check None == Null ?
Public Class Methods
new()
click to toggle source
Calls superclass method
IcAgent::Candid::PrimitiveType::new
# File lib/ic_agent/candid.rb, line 180 def initialize() super end
Public Instance Methods
covariant(x)
click to toggle source
# File lib/ic_agent/candid.rb, line 184 def covariant(x) x == nil end
decode_value(b, t)
click to toggle source
# File lib/ic_agent/candid.rb, line 196 def decode_value(b, t) check_type(t) return nil end
encode_type(type_table = nil)
click to toggle source
# File lib/ic_agent/candid.rb, line 192 def encode_type(type_table = nil) LEB128.encode_signed(TypeIds::Null).string end
encode_value(val)
click to toggle source
# File lib/ic_agent/candid.rb, line 188 def encode_value(val) '' end
id()
click to toggle source
# File lib/ic_agent/candid.rb, line 205 def id TypeIds::Null end
name()
click to toggle source
# File lib/ic_agent/candid.rb, line 201 def name 'null' end