Class: Class
- Inherits:
-
Object
- Object
- Class
- Defined in:
- lib/dbi.rb
Instance Method Summary (collapse)
-
- (Boolean) inherits_from?(klass)
Given a Class, returns if the object's (another Class) ancestors contain that class.
Instance Method Details
- (Boolean) inherits_from?(klass)
Given a Class, returns if the object's (another Class) ancestors contain that class.
67 68 69 |
# File 'lib/dbi.rb', line 67 def inherits_from?(klass) self.ancestors.include?(klass) end |