Parent

Class Index [+]

Quicksearch

RR::WildcardMatchers::IsA

Attributes

klass[R]

Public Class Methods

new(klass) click to toggle source
   # File lib/rr/wildcard_matchers/is_a.rb, line 6
6:       def initialize(klass)
7:         @klass = klass
8:       end

Public Instance Methods

==(other) click to toggle source
    # File lib/rr/wildcard_matchers/is_a.rb, line 18
18:       def ==(other)
19:         return false unless other.is_a?(self.class)
20:         self.klass == other.klass
21:       end
Also aliased as: eql?
eql?(other) click to toggle source
Alias for: ==
inspect() click to toggle source
    # File lib/rr/wildcard_matchers/is_a.rb, line 14
14:       def inspect
15:         "is_a(#{klass})"
16:       end
wildcard_match?(other) click to toggle source
    # File lib/rr/wildcard_matchers/is_a.rb, line 10
10:       def wildcard_match?(other)
11:         self == other || other.is_a?(klass)
12:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.