module SmartCore::ValueObject::Interface::Enumerable::Enumerability

@api private @since 0.1.0

Public Instance Methods

each() { |self| ... } click to toggle source

@param block [Block] @return [Enumerable]

@api public @since 0.1.0 rubocop:disable Style/RedundantParentheses

# File lib/smart_core/value_object/interface/enumerable.rb, line 27
def each(&block)
  block_given? ? yield(self) : (Enumerator.new { |yielder| yielder.yield(self) }.each)
end