search for: cur_attrs

Displaying 1 result from an estimated 1 matches for "cur_attrs".

Did you mean: cur_xattrs
2010 May 17
3
Writing a properly-formed custom type (configxml)
...desc "XPath expression selecting target elements; the first of which whose attributes will be set." end newparam(:attributes) do desc "An array of strings, each containing ''key=value'' expressions setting element attributes." end def evaluate cur_attrs = test_it if Set.new(value(:attributes).split(/,/)) == Set.new(cur_attrs) debug("Attributes for element at #{value(:xpath)} already #{value(:attributes)}. No changes necessary.") return [] # TODO what goes here? else notice("Updating attributes for element at #{valu...