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