Sha256: fe62ab79019030f0b9541bcef430835dc41e9941dc23f71113305c2a79f16684
Contents?: true
Size: 340 Bytes
Versions: 23
Compression:
Stored size: 340 Bytes
Contents
class Set def delete_if block_given? or return enum_for(__method__) to_a.each { |o| @hash.delete(o) if yield(o) } self end unless method_defined? :delete_if def keep_if block_given? or return enum_for(__method__) to_a.each { |o| @hash.delete(o) unless yield(o) } self end unless method_defined? :keep_if end
Version data entries
23 entries across 23 versions & 2 rubygems