File: invocation.rb

package info (click to toggle)
ruby-bourne 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 208 kB
  • ctags: 261
  • sloc: ruby: 1,353; makefile: 5
file content (14 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Mocha # :nodoc:
  # Used internally by Bourne extensions to Mocha. Represents a single
  # invocation of a stubbed or mocked method. The mock, method name, and
  # arguments are recorded and can be used to determine how a method was
  # invoked.
  class Invocation
    attr_reader :mock, :method_name, :arguments
    def initialize(mock, method_name, arguments)
      @mock        = mock
      @method_name = method_name
      @arguments   = arguments
    end
  end
end