Module: MurmurHash3::Alias32

Included in:
Native32, PureRuby32
Defined in:
lib/murmurhash3/aliaser.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/murmurhash3/aliaser.rb', line 3

def self.included(base)
  base.send(:extend, base)
  class << base
    alias fmix murmur3_32_fmix
    alias str_hash murmur3_32_str_hash
    alias str_digest murmur3_32_str_digest
    alias str_hexdigest murmur3_32_str_hexdigest
    alias str_base64digest murmur3_32_str_base64digest
    alias int32_hash murmur3_32_int32_hash
    alias int64_hash murmur3_32_int64_hash
  end
end