Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/active_fedora.rb
Direct Known Subclasses
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 |