Sha256: a3eee3a516dd9d3ae39b4ea4c8e4c105ac92ba123c2fb6c081e4f16f254867f5

Contents?: true

Size: 325 Bytes

Versions: 11

Compression:

Stored size: 325 Bytes

Contents

require 'facets/enumerable/mash'

class Hash

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

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

  # Alias for #graph! as an alliteration for "map hash".
  alias_method :mash!, :graph!

end

Version data entries

11 entries across 10 versions & 1 rubygems

Version Path
facets-3.1.0 lib/core/facets/hash/graph.rb
facets-3.0.0 lib/core/facets/hash/graph.rb
facets-2.9.3 lib/core/facets/hash/graph.rb
facets-2.9.2 src/core/facets/hash/graph.rb
facets-2.9.2 lib/core/facets/hash/graph.rb
facets-2.9.1 lib/core/facets/hash/graph.rb
facets-2.9.0 lib/core/facets/hash/graph.rb
facets-2.9.0.pre.2 lib/core/facets/hash/graph.rb
facets-2.9.0.pre.1 lib/core/facets/hash/graph.rb
facets-2.8.4 lib/core/facets/hash/graph.rb
facets-2.8.3 lib/core/facets/hash/graph.rb