Sha256: a06f35ee45e51a75f5a8362f900686ea673e28bdf5cce41ffc5c3fe30720a2aa

Contents?: true

Size: 170 Bytes

Versions: 19

Compression:

Stored size: 170 Bytes

Contents

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

19 entries across 19 versions & 1 rubygems

Version Path
gooddata-1.3.0-java lib/gooddata/extensions/class.rb
gooddata-1.3.0 lib/gooddata/extensions/class.rb
gooddata-1.2.1-java lib/gooddata/extensions/class.rb
gooddata-1.2.1 lib/gooddata/extensions/class.rb
gooddata-1.2.0-java lib/gooddata/extensions/class.rb
gooddata-1.2.0 lib/gooddata/extensions/class.rb
gooddata-1.1.0-java lib/gooddata/extensions/class.rb
gooddata-1.1.0 lib/gooddata/extensions/class.rb
gooddata-1.0.2-java lib/gooddata/extensions/class.rb
gooddata-1.0.2 lib/gooddata/extensions/class.rb
gooddata-1.0.1 lib/gooddata/extensions/class.rb
gooddata-1.0.1-java lib/gooddata/extensions/class.rb
gooddata-1.0.0-java lib/gooddata/extensions/class.rb
gooddata-1.0.0 lib/gooddata/extensions/class.rb
gooddata-0.6.54 lib/gooddata/extensions/class.rb
gooddata-0.6.53 lib/gooddata/extensions/class.rb
gooddata-0.6.52 lib/gooddata/extensions/class.rb
gooddata-0.6.51 lib/gooddata/extensions/class.rb
gooddata-0.6.50 lib/gooddata/extensions/class.rb