Module: Enumerable
- Defined in:
- lib/consenter.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#each_consented(prompt = '%s', options = {}) ⇒ Object
79 80 81 82 83 84 85 86 |
# File 'lib/consenter.rb', line 79 def (prompt = '%s', = {}) unless block_given? return to_enum(__method__, prompt, ) do size; end end Consenter.new(prompt, ).for(self) do |*args| yield(*args) end end |