Sha256: 9a3751fb9b133cd00eee9f688ddc2fa8cab8c07a635810651e59a9a60ef490d7

Contents?: true

Size: 910 Bytes

Versions: 15

Compression:

Stored size: 910 Bytes

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
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
everyday-cli-utils-1.6.0 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.5.2 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.5.1 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.5.0 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.4.0 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.3.0 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.2.0 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.1.0 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-1.0.0 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-0.7.0 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-0.6.0 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-0.5.1 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-0.5.0 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-0.4.0 lib/everyday-cli-utils/maputil.rb
everyday-cli-utils-0.3.0 lib/everyday-cli-utils/maputil.rb