class IcAgent::Candid::BaseType

Represents an IDL type.

Public Class Methods

_build_type_table_impl(type_table = nil) click to toggle source
# File lib/ic_agent/candid.rb, line 130
def self._build_type_table_impl(type_table = nil)
  raise NotImplementedError, 'subclass must implement abstract method'
end
check_type() click to toggle source
# File lib/ic_agent/candid.rb, line 126
def self.check_type
  raise NotImplementedError, 'subclass must implement abstract method'
end
covariant() click to toggle source
# File lib/ic_agent/candid.rb, line 110
def self.covariant
  raise NotImplementedError, 'subclass must implement abstract method'
end
decode_value() click to toggle source
# File lib/ic_agent/candid.rb, line 114
def self.decode_value
  raise NotImplementedError, 'subclass must implement abstract method'
end
encode_type() click to toggle source
# File lib/ic_agent/candid.rb, line 118
def self.encode_type
  raise NotImplementedError, 'subclass must implement abstract method'
end
encode_value() click to toggle source
# File lib/ic_agent/candid.rb, line 122
def self.encode_value
  raise NotImplementedError, 'subclass must implement abstract method'
end

Public Instance Methods

build_type_table(type_table) click to toggle source
# File lib/ic_agent/candid.rb, line 104
def build_type_table(type_table)
  unless type_table.has(self)
    self._build_type_table_impl(type_table)
  end
end
display() click to toggle source
# File lib/ic_agent/candid.rb, line 100
def display
  return self.name
end