Sha256: e5a1ae510c221c046ab1a64acde291957f726948a1b9455802e6dd5b64aa2881
Contents?: true
Size: 300 Bytes
Versions: 56
Compression:
Stored size: 300 Bytes
Contents
class Object def get_methods *types types.inject([]) do |list, type| list << case type when :all get_methods(:private, :protected, :public) when :private, :protected, :public send :"#{type}_methods" end list.flatten end.flatten.uniq end end
Version data entries
56 entries across 56 versions & 1 rubygems