Class: Array

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

Direct Known Subclasses

FedoraObjects

Instance Method Summary collapse

Instance Method Details

#count(&action) ⇒ Object



88
89
90
91
92
93
# File 'lib/active_fedora.rb', line 88

def count(&action)
  count = 0
   self.each { |v| count = count + 1}
  #      self.each { |v| count = count + 1 if action.call(v) }
  return count
end