Class: Bogus::BaseClassIdentifier
- Inherits:
-
Object
- Object
- Bogus::BaseClassIdentifier
- Extended by:
- Takes
- Defined in:
- lib/bogus/fakes/base_class_identifier.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Takes
Class Method Details
.base_class?(copied_class, klass) ⇒ Boolean
6 7 8 |
# File 'lib/bogus/fakes/base_class_identifier.rb', line 6 def self.base_class?(copied_class, klass) new(copied_class, klass).base_class? end |
Instance Method Details
#base_class? ⇒ Boolean
10 11 12 |
# File 'lib/bogus/fakes/base_class_identifier.rb', line 10 def base_class? same? || included_module? || subclass? end |