module HashIdentable

Constants

VERSION

Public Class Methods

config() { |configuration| ... } click to toggle source
# File lib/hash_identable/configuration.rb, line 3
def self.config
  yield(configuration)
end
configuration() click to toggle source
# File lib/hash_identable/configuration.rb, line 7
def self.configuration
  @configuration ||= Configuration.new
end
included(base) click to toggle source
# File lib/hash_identable/class_methods.rb, line 3
def self.included(base)
  base.extend(ClassMethods)
end
lookup_table() click to toggle source
# File lib/hash_identable/lookup_table.rb, line 5
def self.lookup_table
  @lookup_table ||= LookupTable.new
end

Public Instance Methods

identity() click to toggle source
# File lib/hash_identable.rb, line 11
def identity
  @identity ||= Identity.new(self.class, id)
end
uuid() click to toggle source
# File lib/hash_identable.rb, line 15
def uuid
  identity.encoded_id
end