Module: Aliyun::Log::Record::TypeCasting::Registry
- Defined in:
- lib/aliyun/log/record/type_casting.rb
Class Method Summary collapse
Class Method Details
.lookup(name) ⇒ Object
196 197 198 199 |
# File 'lib/aliyun/log/record/type_casting.rb', line 196 def lookup(name) name ||= :string @registrations[name.to_sym] end |
.register(name, klass = nil) ⇒ Object
192 193 194 |
# File 'lib/aliyun/log/record/type_casting.rb', line 192 def register(name, klass = nil) @registrations[name.to_sym] = klass end |