File: stash.rb

package info (click to toggle)
ruby-hashery 2.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 404 kB
  • sloc: ruby: 2,997; makefile: 7
file content (14 lines) | stat: -rw-r--r-- 203 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'hashery/key_hash'

module Hashery
  # Stash is the original name for the KeyHash.
  Stash = KeyHash
end

class Hash
  # Convert Hash to Stash.
  def to_stash
    Hashery::Stash[self]
  end
end