Module: DearInventory::IsASubclass
- Included in:
- Model, Parameters, Resource, Response, TestResponse
- Defined in:
- lib/dear_inventory/lib/is_a_subclass.rb
Instance Method Summary collapse
Instance Method Details
#is_a?(comparison_class) ⇒ Boolean
5 6 7 8 9 10 11 |
# File 'lib/dear_inventory/lib/is_a_subclass.rb', line 5 def is_a?(comparison_class) return true if super return self <= comparison_class if instance_of?(Class) false end |