Class: Mocha::SingleYield
Overview
:nodoc:
Instance Attribute Summary collapse
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
Instance Method Summary collapse
- #each {|@parameters| ... } ⇒ Object
-
#initialize(*parameters) ⇒ SingleYield
constructor
A new instance of SingleYield.
Constructor Details
#initialize(*parameters) ⇒ SingleYield
Returns a new instance of SingleYield.
7 8 9 |
# File 'lib/mocha/single_yield.rb', line 7 def initialize(*parameters) @parameters = parameters end |
Instance Attribute Details
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
5 6 7 |
# File 'lib/mocha/single_yield.rb', line 5 def parameters @parameters end |
Instance Method Details
#each {|@parameters| ... } ⇒ Object
11 12 13 |
# File 'lib/mocha/single_yield.rb', line 11 def each yield(@parameters) end |