Parent

Class/Module Index [+]

Quicksearch

WebMock::MethodPattern

Public Class Methods

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

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.