Module: OM::XML::ClassMethods
- Defined in:
- lib/om/xml.rb
Overview
Class Methods – These methods will be available on classes that include this Module
Instance Method Summary collapse
Instance Method Details
#sanitize_pointer(pointer) ⇒ Object
ex. [[:person,1],:role] will be converted to [:person=>1,:role]
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/om/xml.rb', line 32 def sanitize_pointer(pointer) if pointer.kind_of?(Array) pointer.each do |x| if x.kind_of?(Array) pointer[pointer.index(x)] = Hash[x[0],x[1]] end end end return pointer end |