Sha256: 50598d92a007c637364e5053a3684be322590996236df24fd3aafd92cbfc3cd5
Contents?: true
Size: 330 Bytes
Versions: 1
Compression:
Stored size: 330 Bytes
Contents
module Wombat module NodeSelector def select_nodes selector, namespaces = nil return [selector.to_s] if selector.is_a? Symbol return context.xpath selector[6..-1], namespaces if selector.start_with? "xpath=" return context.css selector[4..-1] if selector.start_with? "css=" selector end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wombat-0.3.1 | lib/wombat/node_selector.rb |