Class: Disposable::Twin::Definition::Each

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/disposable/twin/definitions.rb

Instance Method Summary collapse

Instance Method Details

#each(options = {}) ⇒ Object



24
25
26
27
28
# File 'lib/disposable/twin/definitions.rb', line 24

def each(options={})
  return __getobj__ unless block_given?

  Definition::Filter.(__getobj__, options).each { |dfn| yield dfn }
end