Module: ActiveRemote::Type
- Defined in:
- lib/active_remote/type.rb,
lib/active_remote/type/registry.rb
Defined Under Namespace
Classes: Registration, Registry
Class Attribute Summary collapse
-
.registry ⇒ Object
:nodoc:.
Class Method Summary collapse
-
.lookup(type_name) ⇒ Object
:nodoc:.
-
.register(type_name, klass) ⇒ Object
Add a new type to the registry, allowing it to be gotten through ActiveRemote::Type#lookup.
Class Attribute Details
.registry ⇒ Object
:nodoc:
14 15 16 |
# File 'lib/active_remote/type.rb', line 14 def registry @registry end |
Class Method Details
.lookup(type_name) ⇒ Object
:nodoc:
21 22 23 |
# File 'lib/active_remote/type.rb', line 21 def lookup(type_name) # :nodoc: registry.lookup(type_name) end |
.register(type_name, klass) ⇒ Object
Add a new type to the registry, allowing it to be gotten through ActiveRemote::Type#lookup
17 18 19 |
# File 'lib/active_remote/type.rb', line 17 def register(type_name, klass) registry.register(type_name, klass) end |