# File lib/rr/wildcard_matchers/is_a.rb, line 6 def initialize(klass) @klass = klass end
# File lib/rr/wildcard_matchers/is_a.rb, line 18 def ==(other) return false unless other.is_a?(self.class) self.klass == other.klass end
# File lib/rr/wildcard_matchers/is_a.rb, line 14 def inspect "is_a(#{klass})" end
# File lib/rr/wildcard_matchers/is_a.rb, line 10 def wildcard_match?(other) self == other || other.is_a?(klass) end