Sha256: 9a7372e6e91e038bdc87cbe1528d40e1a5375a94b25074b0138032e154add1d7
Contents?: true
Size: 498 Bytes
Versions: 1
Compression:
Stored size: 498 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 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.alpha1 | lib/hot_module/query_selection.rb |