Class: PubliSci::Prov::Entity::Derivations

Inherits:
Array
  • Object
show all
Defined in:
lib/bio-publisci/metadata/prov/entity.rb

Instance Method Summary collapse

Instance Method Details

#[](index) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/bio-publisci/metadata/prov/entity.rb', line 5

def [](index)
  if self.fetch(index).is_a? Symbol
      Prov.entities[self.fetch(index)]
  else
    self.fetch(index)
  end
end