Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/wsdl-reader/core_ext.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#keys_to_sym!Object



8
9
10
11
12
13
# File 'lib/wsdl-reader/core_ext.rb', line 8

def keys_to_sym!( )
  self.each {|k, v| 
    self.delete(k)
    self[k.to_sym] = v
  }
end

#kvTable(k, v) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/wsdl-reader/core_ext.rb', line 15

def kvTable( k, v )
  self[k] = v
#    if( self.keys.include?(k) )
#      if self[k].class == Array
#        self[k] << v
#      else
#        self[k] = [self[k], v]
#      end
#    else
#      self[k] = v
#    end
end