module RubyQuirks::Hash::EnumByDup

Public Instance Methods

reject(*args, &block) click to toggle source
# File lib/ruby_quirks/hash/enum_by_dup.rb, line 12
def reject(*args, &block)
  return to_enum(:reject) unless block_given?
  dup.tap { |hash| hash.reject!(*args, &block) }
end
select(*args, &block) click to toggle source
# File lib/ruby_quirks/hash/enum_by_dup.rb, line 8
def select(*args, &block)
  return to_enum(:select) unless block_given?
  dup.tap { |hash| hash.select!(*args, &block) }
end