Class: Bogus::BaseClassIdentifier

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Takes

takes

Class Method Details

.base_class?(copied_class, klass) ⇒ Boolean

Returns:

  • (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

Returns:

  • (Boolean)


10
11
12
# File 'lib/bogus/fakes/base_class_identifier.rb', line 10

def base_class?
  same? || included_module? || subclass?
end