Class Class
In: lib/dbi.rb
Parent: Object

Methods

Public Instance methods

Given a Class, returns if the object‘s (another Class) ancestors contain that class.

[Source]

    # File lib/dbi.rb, line 61
61:     def inherits_from?(klass)
62:         self.ancestors.include?(klass)
63:     end

[Validate]