Sha256: 57fdc407acf679470d8e89ef9c0ab9f98685496f901560461e2a70db32d45c79

Contents?: true

Size: 339 Bytes

Versions: 15

Compression:

Stored size: 339 Bytes

Contents

require 'facets/enumerable/mash'

class Hash

  # In place version of #mash.
  #
  #   NOTE: Hash#mash! is only useful for Hash. It is not generally
  #         applicable to Enumerable.

  def mash!(&yld)
    replace(mash(&yld))
  end

  # Alias for #mash!. This is the original name for this method.
  alias_method :graph!, :mash!

end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
facets-2.8.2 lib/core/facets/hash/mash.rb
facets-2.8.1 lib/core/facets/hash/mash.rb
facets-2.8.0 lib/core/facets/hash/mash.rb
facets-2.7.0 lib/core/facets/hash/mash.rb
facets-2.6.0 lib/core/facets/hash/mash.rb
facets-2.4.0 lib/facets/hash/mash.rb
facets-2.4.1 lib/facets/hash/mash.rb
facets-2.4.2 lib/core/facets/hash/mash.rb
facets-2.4.4 lib/core/facets/hash/mash.rb
facets-2.4.3 lib/core/facets/hash/mash.rb
facets-2.5.1 lib/core/facets/hash/mash.rb
facets-2.5.0 lib/core/facets/hash/mash.rb
facets-2.4.5 lib/core/facets/hash/mash.rb
facets-2.5.2 lib/core/facets/hash/mash.rb
mack-facets-0.8.2 lib/gems/facets-2.4.5/lib/core/facets/hash/mash.rb