class Class

Public Instance Methods

inherits_from?(klass) click to toggle source

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

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