Class: Grape::API
- Inherits:
-
Object
- Object
- Grape::API
- Defined in:
- lib/sapience/grape.rb
Class Method Summary collapse
-
.descendants ⇒ Object
:nodoc:.
Class Method Details
.descendants ⇒ Object
:nodoc:
7 8 9 10 11 12 13 |
# File 'lib/sapience/grape.rb', line 7 def self.descendants # :nodoc: descendants = [] ObjectSpace.each_object(singleton_class) do |k| descendants.unshift k unless k == self end descendants end |