Method: Lookbook::EntityCollection#each
- Defined in:
- lib/lookbook/entities/collections/entity_collection.rb
#each(&block) ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/lookbook/entities/collections/entity_collection.rb', line 43 def each(&block) if block entities.sort.each { |entity| yield entity } else to_enum(:each) end end |