Class: Nanaimo::Dictionary

Inherits:
Object
  • Object
show all
Defined in:
lib/nanaimo/object.rb

Overview

A dictionary object in a Plist.

Instance Attribute Summary

Attributes inherited from Object

#annotation, #value

Instance Method Summary collapse

Methods inherited from Object

#<=>, #==, #hash, #initialize, #to_s

Constructor Details

This class inherits a constructor from Nanaimo::Object

Instance Method Details

#as_rubyObject



98
99
100
# File 'lib/nanaimo/object.rb', line 98

def as_ruby
  Hash[value.map { |k, v| [k.as_ruby, v.as_ruby] }]
end