class Phash::HashData
Public Class Methods
hash_type()
click to toggle source
# File lib/phash.rb, line 21 def self.hash_type @hash_type ||= self.name.split('::').last.sub(/Hash$/, '').downcase end
Public Instance Methods
similarity(other, *args)
click to toggle source
# File lib/phash.rb, line 17 def similarity(other, *args) Phash.send("#{self.class.hash_type}_similarity", self, other, *args) end