Class: AppEngine::Rack::EnvVarMap

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

Instance Method Summary collapse

Instance Method Details

#append_to(xml) ⇒ Object



100
101
102
103
104
105
106
107
108
# File 'lib/appengine-rack.rb', line 100

def append_to(xml)
  unless empty?
    env = xml.add_element('env-variables') 
    each do |name, value|
      env.add_element('env-var').
          add_attributes( { "name" => name, "value" => value.to_s } )
    end
  end
end