Class: Glossarist::Collections::DesignationCollection

Inherits:
Collection
  • Object
show all
Defined in:
lib/glossarist/collections/designation_collection.rb

Instance Attribute Summary

Attributes inherited from Collection

#collection

Instance Method Summary collapse

Methods inherited from Collection

#clear!, #each, #empty?

Constructor Details

#initializeDesignationCollection

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