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.



64
65
66
# File 'lib/property-list.rb', line 64

def initialize uid
  @uid = uid
end

Instance Attribute Details

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