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.
64 65 66 |
# File 'lib/property-list.rb', line 64 def initialize uid @uid = uid end |
Instance Attribute Details
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
68 69 70 |
# File 'lib/property-list.rb', line 68 def uid @uid end |
Instance Method Details
#==(other) ⇒ Object
70 71 72 |
# File 'lib/property-list.rb', line 70 def == other other.is_a?(Uid) and @uid == other.uid end |