Module: ScatterSwap
- Defined in:
- lib/scatter_swap.rb,
lib/scatter_swap/hasher.rb,
lib/scatter_swap/version.rb
Defined Under Namespace
Classes: Hasher
Constant Summary collapse
- VERSION =
"0.0.3"
Class Method Summary collapse
Class Method Details
.hash(plain_integer, spin = 0) ⇒ Object
5 6 7 |
# File 'lib/scatter_swap.rb', line 5 def self.hash(plain_integer, spin = 0) Hasher.new(plain_integer, spin).hash end |
.reverse_hash(hashed_integer, spin = 0) ⇒ Object
9 10 11 |
# File 'lib/scatter_swap.rb', line 9 def self.reverse_hash(hashed_integer, spin = 0) Hasher.new(hashed_integer, spin).reverse_hash end |