Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/odf/converter/hash.rb

Instance Method Summary collapse

Instance Method Details

#to_uno_propertiesObject



4
5
6
7
8
9
10
11
12
# File 'lib/odf/converter/hash.rb', line 4

def to_uno_properties
  self.inject([]) do |memo, (key, value)|
    property = Uno::PropertyValue.new
    property.Name = key.to_s
    property.Value = value.to_s
    memo << property
    memo
  end      
end