Class: PropertyList::Uid

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#uidObject (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