Methods
Public Instance methods
[ show source ]
# File xquery_use_cases/parts/q1.rb, line 3 def parts_of(parts, partid) res = [] parts.each{|p| if p[:partof] == partid a = p.attrs.dup a.delete :partof res << xml(:part, a, parts_of(parts, p[:partid])) end } res end