Class: Exlibris::Aleph::Item::DisplayMask
- Inherits:
-
Object
- Object
- Exlibris::Aleph::Item::DisplayMask
- Defined in:
- lib/exlibris/aleph/item/display_mask.rb
Instance Attribute Summary collapse
-
#mask ⇒ Object
readonly
Returns the value of attribute mask.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other_object) ⇒ Object (also: #eql?)
-
#initialize(value, mask) ⇒ DisplayMask
constructor
A new instance of DisplayMask.
Constructor Details
#initialize(value, mask) ⇒ DisplayMask
Returns a new instance of DisplayMask.
7 8 9 10 |
# File 'lib/exlibris/aleph/item/display_mask.rb', line 7 def initialize(value, mask) @value = value @mask = mask end |
Instance Attribute Details
#mask ⇒ Object (readonly)
Returns the value of attribute mask.
5 6 7 |
# File 'lib/exlibris/aleph/item/display_mask.rb', line 5 def mask @mask end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/exlibris/aleph/item/display_mask.rb', line 5 def value @value end |
Instance Method Details
#==(other_object) ⇒ Object Also known as: eql?
12 13 14 |
# File 'lib/exlibris/aleph/item/display_mask.rb', line 12 def ==(other_object) other_object.instance_of?(self.class) && value == other_object.value end |