Class: ScalaEnumerable

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/ext/kafka.rb

Instance Method Summary collapse

Constructor Details

#initialize(underlying) ⇒ ScalaEnumerable

Returns a new instance of ScalaEnumerable.



52
53
54
# File 'lib/ext/kafka.rb', line 52

def initialize(underlying)
  @underlying = underlying
end

Instance Method Details

#each(&block) ⇒ Object



56
57
58
# File 'lib/ext/kafka.rb', line 56

def each(&block)
  @underlying.foreach(&block)
end