Sha256: 3241ad674692e6929358823ace075d90240219ed9a3d7e4c60b0a4ffc4b7de43
Contents?: true
Size: 535 Bytes
Versions: 1
Compression:
Stored size: 535 Bytes
Contents
# frozen_string_literal: true module HoTModuLe # Add a couple familar DOM API features to Nokogiri module QuerySelection # @param selector [String] # @return [Nokogiri::XML::Element] def query_selector(selector) = at_css(selector) # @param selector [String] # @return [Nokogiri::XML::Element] def query_selector_all(selector) = css(selector) end # TODO: do we need this, or no? # Nokogiri::XML::Node.include QuerySelection unless Nokogiri::XML::Node.instance_methods.include?(:query_selector) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hot_module-1.0.0.alpha2 | lib/hot_module/query_selection.rb |