Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/iso_bib_item/iso_bibliographic_item.rb

Overview

Add filter method to Array.

Direct Known Subclasses

IsoBibItem::DocRelationCollection

Instance Method Summary collapse

Instance Method Details

#filter(type:) ⇒ Object



15
16
17
# File 'lib/iso_bib_item/iso_bibliographic_item.rb', line 15

def filter(type:)
  select { |e| e.type == type }
end