Sha256: 1a2d2d2f5348aac6802a2c110260aa06d7a25c3e85588fe5090b96083ba2bce6

Contents?: true

Size: 382 Bytes

Versions: 3

Compression:

Stored size: 382 Bytes

Contents

module Exlibris
  module Aleph
    class Item
      class DisplayMask
        attr_reader :value, :mask

        def initialize(value, mask)
          @value = value
          @mask = mask
        end

        def ==(other_object)
          other_object.instance_of?(self.class) && value == other_object.value
        end
        alias_method :eql?, :==
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
exlibris-aleph-2.0.4 lib/exlibris/aleph/item/display_mask.rb
exlibris-aleph-2.0.3 lib/exlibris/aleph/item/display_mask.rb
exlibris-aleph-2.0.0 lib/exlibris/aleph/item/display_mask.rb