Module: Sapience::Descendants
- Included in:
- Grape::API, ErrorHandler, Metrics, Subscriber, Sneakers::Worker
- Defined in:
- lib/sapience/descendants.rb
Instance Method Summary collapse
-
#descendants ⇒ Object
:nodoc:.
Instance Method Details
#descendants ⇒ Object
:nodoc:
4 5 6 7 8 9 10 |
# File 'lib/sapience/descendants.rb', line 4 def descendants # :nodoc: descendants = [] ObjectSpace.each_object(singleton_class) do |k| descendants.unshift k unless k == self end descendants end |