# File lib/ruote/exp/ro_attributes.rb, line 150 def dsub(o, wi=h.applied_workitem) case o when String; @context.dollar_sub.s(o, self, wi) when Array; o.collect { |e| dsub(e, wi) } when Hash; o.remap { |(k, v), h| h[dsub(k, wi)] = dsub(v, wi) } else o end end