Class: Bogus::SameClass
- Inherits:
-
Object
- Object
- Bogus::SameClass
- Extended by:
- Takes
- Defined in:
- lib/bogus/stubbing/same_class.rb
Instance Method Summary collapse
Methods included from 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 |
#inspect ⇒ Object
6 7 8 |
# File 'lib/bogus/stubbing/same_class.rb', line 6 def inspect "any(#{klass.name})" end |