Class: PubliSci::Prov::Activity::Associations

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

Instance Method Summary collapse

Instance Method Details

#[](index) ⇒ Object



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

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