Parent

Files

WebMock::MethodPattern

Public Class Methods

new(pattern) click to toggle source
    # File lib/webmock/request_pattern.rb, line 56
56:     def initialize(pattern)
57:       @pattern = pattern
58:     end

Public Instance Methods

matches?(method) click to toggle source
    # File lib/webmock/request_pattern.rb, line 60
60:     def matches?(method)
61:       @pattern == method || @pattern == :any
62:     end
to_s() click to toggle source
    # File lib/webmock/request_pattern.rb, line 64
64:     def to_s
65:       @pattern.to_s
66:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.