Jam::CSStoXPath

Generated with Razzle Dazzle Redfish.
[Validate]

Constants

RULES
(Not documented)

Public Instance Methods

css_to_xpath(css) click to toggle source

(Not documented)

# File lib/jam/css_to_xpath.rb, line 117
    def css_to_xpath(css)
      RULES.each do |f, t|
        case t
        when Proc
          css = css.gsub(f, &t)
        else
          css = css.gsub(f, t)
        end
      end
      return ".//" + css;
    end
rule(re_from, re_to=nil, &block) click to toggle source

(Not documented)

# File lib/jam/css_to_xpath.rb, line 25
    def rule(re_from, re_to=nil, &block)
      RULES << [re_from, re_to || block]
    end

Disabled; run with --debug to generate this.