Class: DAP::Relation::Many
- Inherits:
-
Object
- Object
- DAP::Relation::Many
- Defined in:
- lib/dap/relation.rb
Overview
Indicates a property is expected to be an array of the specified type
Instance Attribute Summary collapse
-
#klazz ⇒ Object
readonly
The expected element type.
Instance Method Summary collapse
-
#initialize(klazz) ⇒ Many
constructor
A new instance of Many.
Constructor Details
#initialize(klazz) ⇒ Many
Returns a new instance of Many.
14 15 16 17 |
# File 'lib/dap/relation.rb', line 14 def initialize(klazz) DAP::Relation.supported!(klazz) @klazz = klazz end |
Instance Attribute Details
#klazz ⇒ Object (readonly)
The expected element type.
11 12 13 |
# File 'lib/dap/relation.rb', line 11 def klazz @klazz end |