class Class

Copyright © 2010-2017 GoodData Corporation. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.

Public Instance Methods

descendants() click to toggle source
# File lib/gooddata/extensions/class.rb, line 10
def descendants
  ObjectSpace.each_object(Class).select do |klass|
    klass < self
  end
end
short_name() click to toggle source
# File lib/gooddata/extensions/class.rb, line 6
def short_name
  name.split('::').last
end