module DearInventory::IsASubclass
Public Instance Methods
is_a?(comparison_class)
click to toggle source
Calls superclass method
# File lib/dear_inventory/lib/is_a_subclass.rb, line 9 def is_a?(comparison_class) return true if super if T.unsafe(self).class == Class return T.unsafe(self).ancestors.include?(comparison_class) end false end