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]
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/om/xml.rb', line 19 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 |