Class: Mitch
- Inherits:
-
Object
- Object
- Mitch
- Defined in:
- lib/mitch.rb
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(iterable) ⇒ Mitch
constructor
A new instance of Mitch.
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
#each ⇒ Object
22 23 24 25 26 |
# File 'lib/mitch.rb', line 22 def each @iterable.each do |x| yield x end end |