Class: Glossarist::Collections::DesignationCollection
- Inherits:
-
Collection
- Object
- Collection
- Glossarist::Collections::DesignationCollection
- Defined in:
- lib/glossarist/collections/designation_collection.rb
Instance Attribute Summary
Attributes inherited from Collection
Instance Method Summary collapse
- #<<(object) ⇒ Object
-
#initialize ⇒ DesignationCollection
constructor
A new instance of DesignationCollection.
Methods inherited from Collection
Constructor Details
#initialize ⇒ DesignationCollection
Returns a new instance of DesignationCollection.
6 7 8 |
# File 'lib/glossarist/collections/designation_collection.rb', line 6 def initialize super(klass: Designation::Base) end |
Instance Method Details
#<<(object) ⇒ Object
10 11 12 |
# File 'lib/glossarist/collections/designation_collection.rb', line 10 def <<(object) @collection << @klass.from_h(object) end |