Module: DomainDriven::Collection
- Defined in:
- lib/domain_driven/entity.rb
Instance Method Summary collapse
Instance Method Details
#each ⇒ Object
47 48 49 50 51 |
# File 'lib/domain_driven/entity.rb', line 47 def each _data.each do |_item| yield wrap(_item) end end |
#include?(other) ⇒ Boolean
52 53 54 55 56 57 58 |
# File 'lib/domain_driven/entity.rb', line 52 def include?(other) if other.respond_to?(:_data) _data.include?(other._data) else _data.include?(other) end end |