Class: Mitch

Inherits:
Object
  • Object
show all
Defined in:
lib/mitch.rb

Instance Method Summary collapse

Constructor Details

#initialize(iterable) ⇒ Mitch

Returns a new instance of Mitch.



18
19
20
# File 'lib/mitch.rb', line 18

def initialize(iterable)
  @iterable = iterable
end

Instance Method Details

#eachObject



22
23
24
25
26
# File 'lib/mitch.rb', line 22

def each
  @iterable.each do |x|
    yield x
  end
end