lib/ruby_goes_rogue/console.rb
# Yield each cell in the console.
# @yieldparam cell [Cell]
# @return [Enumerator<:each>] if no block is given.
# @return [self] if a block is given.
Yield each cell in the console.
Yield each cell in the console .
def each
      return enum_for(:each) unless block_given?
      @rect.each { |c| yield self[c] }
      self
    end
def each return enum_for ( :each ) unless block_given? @rect . each { | c | yield self [ c ] } self end
Yield each cell in the console.
Yield each cell in the console .
if no block is given.
if no block is given .
Enumerator<:each>
if a block is given.
if a block is given .
self
<not_specific>
None