lib/hatemile/util/html/nokogiri/nokogiri_html_dom_node.rb
##
# Initializes a new object that encapsulate the Nokogiri node.
#
# @param node [Nokogiri::XML::Node] The Nokogiri node.
# @param hatemile_node [Hatemile::Util::Html::HTMLDOMNode] The
#   HaTeMiLe node.
Initializes a new object that encapsulate the Nokogiri node.
Initializes a new object that encapsulate the Nokogiri node .
def init(node, hatemile_node)
            Hatemile::Helper.require_not_nil(node, hatemile_node)
            Hatemile::Helper.require_valid_type(node, Nokogiri::XML::Node)
            Hatemile::Helper.require_valid_type(
              hatemile_node,
              Hatemile::Util::Html::HTMLDOMNode
            )
            @node = node
            @hatemile_node = hatemile_node
          end
def init ( node , hatemile_node ) Hatemile :: Helper . require_not_nil ( node , hatemile_node ) Hatemile :: Helper . require_valid_type ( node , Nokogiri :: XML :: Node ) Hatemile :: Helper . require_valid_type ( hatemile_node , Hatemile :: Util :: Html :: HTMLDOMNode ) @node = node @hatemile_node = hatemile_node end
Initializes a new object that encapsulate the Nokogiri node.
Initializes a new object that encapsulate the Nokogiri node .
node
The Nokogiri node.
The Nokogiri node .
hatemile_node
The HaTeMiLe node.
The HaTeMiLe node .