Class: AppEngine::Rack::PropertyMap

Inherits:
Hash
  • Object
show all
Defined in:
lib/appengine-rack.rb

Instance Method Summary collapse

Instance Method Details

#append_to(xml) ⇒ Object



88
89
90
91
92
93
94
95
96
# File 'lib/appengine-rack.rb', line 88

def append_to(xml)
  unless empty?
    sys = xml.add_element('system-properties') 
    each do |name, value|
      sys.add_element('property').
          add_attributes( { "name" => name, "value" => value.to_s } )
    end
  end
end