class IcAgent::Candid::ReservedClass

Represents an IDL Reserved

Public Class Methods

new() click to toggle source
Calls superclass method IcAgent::Candid::PrimitiveType::new
# File lib/ic_agent/candid.rb, line 284
def initialize
  super
end

Public Instance Methods

covariant(x) click to toggle source
# File lib/ic_agent/candid.rb, line 288
def covariant(x)
  true
end
decode_value(b, t) click to toggle source
# File lib/ic_agent/candid.rb, line 300
def decode_value(b, t)
  if name != t.name
    t.decode_value(b, t)
  end
  nil
end
encode_type(type_table = nil) click to toggle source
# File lib/ic_agent/candid.rb, line 296
def encode_type(type_table = nil)
  LEB128.encode_signed(TypeIds::Reserved).string
end
encode_value() click to toggle source
# File lib/ic_agent/candid.rb, line 292
def encode_value
  ''
end
id() click to toggle source
# File lib/ic_agent/candid.rb, line 311
def id
  TypeIds::Reserved
end
name() click to toggle source
# File lib/ic_agent/candid.rb, line 307
def name
  'reserved'
end