class IcAgent::Candid::PrimitiveType

Public Class Methods

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

Public Instance Methods

_build_type_table_impl(type_table = nil) click to toggle source
# File lib/ic_agent/candid.rb, line 148
def _build_type_table_impl(type_table = nil)
  # No type table encoding for Primitive types.
  return
end
check_type(t) click to toggle source
# File lib/ic_agent/candid.rb, line 140
def check_type(t)
  if self.name != t.name
    raise ValueError, "type mismatch: type on the wire #{t.name}, expect type #{self.name}"
  end

  t
end