Class: PropertyList::Uid
- Inherits:
-
Object
- Object
- PropertyList::Uid
- Defined in:
- lib/property-list.rb
Overview
These are used extensively in files written using NSKeyedArchiver, a serializer for Objective-C objects. The value is the index in parse_result
call-seq:
PropertyList::Uid.new 34
Instance Attribute Summary collapse
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uid) ⇒ Uid
constructor
A new instance of Uid.
Constructor Details
#initialize(uid) ⇒ Uid
Returns a new instance of Uid.
54 55 56 |
# File 'lib/property-list.rb', line 54 def initialize uid @uid = uid end |
Instance Attribute Details
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
58 59 60 |
# File 'lib/property-list.rb', line 58 def uid @uid end |
Instance Method Details
#==(other) ⇒ Object
60 61 62 |
# File 'lib/property-list.rb', line 60 def == other other.is_a?(Uid) and @uid == other.uid end |