Sha256: 2355a2468db90575320f24d508c123bf8f7d8db9a13acc36f490982edd50cc87
Contents?: true
Size: 370 Bytes
Versions: 58
Compression:
Stored size: 370 Bytes
Contents
# Copyright (c) 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. class Class def short_name name.split('::').last end def descendants ObjectSpace.each_object(Class).select do |klass| klass < self end end end
Version data entries
58 entries across 58 versions & 1 rubygems