Parent

Methods

Class Index [+]

Quicksearch

Mocha::ReturnValues

Attributes

values[RW]

Public Class Methods

build(*values) click to toggle source
   # File lib/mocha/return_values.rb, line 7
7:     def self.build(*values)
8:       new(*values.map { |value| SingleReturnValue.new(value) })
9:     end
new(*values) click to toggle source
    # File lib/mocha/return_values.rb, line 13
13:     def initialize(*values)
14:       @values = values
15:     end

Public Instance Methods

+(other) click to toggle source
    # File lib/mocha/return_values.rb, line 25
25:     def +(other)
26:       self.class.new(*(@values + other.values))
27:     end
next() click to toggle source
    # File lib/mocha/return_values.rb, line 17
17:     def next
18:       case @values.length
19:         when 0 then nil
20:         when 1 then @values.first.evaluate
21:         else @values.shift.evaluate
22:       end
23:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.