Parent

Methods

Files

Caricature::BlockCallRecording

Attributes

call_number[RW]
args[R]

Public Class Methods

new(*args) click to toggle source
    # File lib/caricature/method_call_recorder.rb, line 7
 7:     def initialize(*args)
 8:       @call_number = 1
 9:       @args = args
10:     end

Public Instance Methods

==(other) click to toggle source

compares one block variation to another. Also takes an array as an argument

    # File lib/caricature/method_call_recorder.rb, line 14
14:     def ==(other)
15:       other = self.class.new(other) if other.respond_to?(:each)
16:       return true if other.args.first.is_a?(Symbol) and other.args.first == :any
17:       other.args == args
18:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.