Sha256: f752d10ba15c89c14bbdbcf18bb006e6b6c9cd052975ff47b2afad74154a6153
Contents?: true
Size: 411 Bytes
Versions: 28
Compression:
Stored size: 411 Bytes
Contents
class Module # return the module objects direct sub modules def modules constants.collect {|const_name| const_get(const_name)}.select {|const| const.class == Module} end # return the module objects direct sub modules def classes constants.collect {|const_name| const_get(const_name)}.select {|const| const.class == Class} end alias :submodules :modules alias :subclasses :classes end
Version data entries
28 entries across 28 versions & 2 rubygems