module Aliyun::Log::Record::TypeCasting::Registry

Public Instance Methods

lookup(name) click to toggle source
# File lib/aliyun/log/record/type_casting.rb, line 206
def lookup(name)
  name ||= :string
  @registrations[name.to_sym]
end
register(name, klass = nil) click to toggle source
# File lib/aliyun/log/record/type_casting.rb, line 202
def register(name, klass = nil)
  @registrations[name.to_sym] = klass
end