Sha256: 34072df0d00bbec0d3951d1b5ada6c8a7855818b8219f133c6a24beacc548630

Contents?: true

Size: 1.2 KB

Versions: 13

Compression:

Stored size: 1.2 KB

Contents

require_relative 'safe/maputil'

module Enumerable
  def removefalse
    EverydayCliUtils::MapUtil.removefalse(self)
  end

  def filtermap(&block)
    EverydayCliUtils::MapUtil.filtermap(self, &block)
  end

  def sum
    EverydayCliUtils::MapUtil.sum(self)
  end

  def prod
    EverydayCliUtils::MapUtil.prod(self)
  end

  def average
    EverydayCliUtils::MapUtil.average(self)
  end

  def std_dev
    EverydayCliUtils::MapUtil.std_dev(self)
  end

  def floats
    EverydayCliUtils::MapUtil.floats(self)
  end

  def summap(&block)
    EverydayCliUtils::MapUtil.summap(self, &block)
  end

  def productmap(&block)
    EverydayCliUtils::MapUtil.productmap(self, &block)
  end

  def chompall
    EverydayCliUtils::MapUtil.chompall(self)
  end

  def join(join_str)
    EverydayCliUtils::MapUtil.join(self, join_str)
  end
end

class Hash
  def expand
    EverydayCliUtils::MapUtil.expand(self)
  end

  def clone
    EverydayCliUtils::MapUtil.clone_hash(self)
  end

  def hashmap(&block)
    EverydayCliUtils::MapUtil.hashmap(self, &block);
  end

  def extend_hash(base_hash)
    EverydayCliUtils::MapUtil.extend_hash(base_hash, self)
  end

  def -(hash2)
    EverydayCliUtils::MapUtil.hash_diff(self, hash2)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
everyday-cli-utils-1.8.7.1 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.8.7 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.8.6 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.8.5 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.8.4 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.8.3 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.8.2 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.8.1 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.8.0 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.7.4 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.7.3 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.7.2 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.7.1 lib/everyday-cli-utils/maputil.rb