Sha256: 4cfac918fd2103d348a880cb103ab1b2b04b1fad55265e309282dd7df8474b86
Contents?: true
Size: 538 Bytes
Versions: 3
Compression:
Stored size: 538 Bytes
Contents
module Exlibris module Aleph class AdminLibrary attr_reader :code def initialize(code) unless code.is_a?(String) raise ArgumentError.new("Expecting #{code} to be a String") end @code = code end def normalized_code @normalized_code ||= code.downcase end def ==(other_object) other_object.instance_of?(self.class) && code == other_object.code end alias_method :eql?, :== def hash code.hash end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
exlibris-aleph-2.0.4 | lib/exlibris/aleph/admin_library.rb |
exlibris-aleph-2.0.3 | lib/exlibris/aleph/admin_library.rb |
exlibris-aleph-2.0.0 | lib/exlibris/aleph/admin_library.rb |