Class: Lookout::Stub::Method::Each
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(*values) ⇒ Each
constructor
A new instance of Each.
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
#call ⇒ Object
25 26 27 28 29 |
# File 'lib/lookout/stub/method.rb', line 25 def call @values.each do |value| yield value end end |