Class: Bogus::SameClass

Inherits:
Object
  • Object
show all
Extended by:
Takes
Defined in:
lib/bogus/stubbing/same_class.rb

Instance Method Summary collapse

Methods included from Takes

takes

Instance Method Details

#==(other) ⇒ Object



10
11
12
# File 'lib/bogus/stubbing/same_class.rb', line 10

def ==(other)
  other.is_a?(klass)
end

#inspectObject



6
7
8
# File 'lib/bogus/stubbing/same_class.rb', line 6

def inspect
  "any(#{klass.name})"
end