Sha256: 36e650d6fe229c68c48bf99ff1c4152876a3647c9fdc7a36424a44add20a3fd2
Contents?: true
Size: 395 Bytes
Versions: 3
Compression:
Stored size: 395 Bytes
Contents
class Array ############################# ## Quick selectors/filters ## ############################# def select_kind_of(klass); select { |el| el.kind_of?(klass) }; end def reject_kind_of(klass); reject { |el| el.kind_of?(klass) }; end def select_kind_of!(klass); select! { |el| el.kind_of?(klass) }; end def reject_kind_of!(klass); reject! { |el| el.kind_of?(klass) }; end end
Version data entries
3 entries across 3 versions & 1 rubygems