Class: Lookout::Stub::Method::Each

Inherits:
Object
  • Object
show all
Defined in:
lib/lookout/stub/method.rb

Instance Method Summary collapse

Constructor Details

#initialize(*values) ⇒ Each

Returns a new instance of Each.



21
22
23
# File 'lib/lookout/stub/method.rb', line 21

def initialize(*values)
  @values = values
end

Instance Method Details

#callObject



25
26
27
28
29
# File 'lib/lookout/stub/method.rb', line 25

def call
  @values.each do |value|
    yield value
  end
end