Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/wsdl-reader/core_ext.rb
Overview
:nodoc:
Direct Known Subclasses
SOAP::WSDL::Services, SOAP::XSD::ComplexType, SOAP::XSD::Element, SOAP::XSD::Restriction, SOAP::XSD::Sequence, SOAP::XSD::SimpleType, WSDL::Reader::Bindings, WSDL::Reader::Messages, WSDL::Reader::Operations, WSDL::Reader::PortTypes
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 |