Class: TypeConstraints::Registry
- Inherits:
-
Object
- Object
- TypeConstraints::Registry
- Defined in:
- lib/type_constraints/registry.rb
Instance Attribute Summary collapse
-
#metas ⇒ Object
Returns the value of attribute metas.
Instance Method Summary collapse
-
#initialize ⇒ Registry
constructor
A new instance of Registry.
- #subtype(name, parent, &code) ⇒ Object
- #type(name, &code) ⇒ Object
Constructor Details
#initialize ⇒ Registry
Returns a new instance of Registry.
4 5 6 |
# File 'lib/type_constraints/registry.rb', line 4 def initialize @metas = {} end |
Instance Attribute Details
#metas ⇒ Object
Returns the value of attribute metas.
3 4 5 |
# File 'lib/type_constraints/registry.rb', line 3 def @metas end |