Class: Aranha::Parsers::Html::Node::Default

Inherits:
Base
  • Object
show all
Defined in:
lib/aranha/parsers/html/node/default.rb,
lib/aranha/parsers/html/node/default/nodes_support.rb,
lib/aranha/parsers/html/node/default/string_support.rb,
lib/aranha/parsers/html/node/default/numeric_support.rb,
lib/aranha/parsers/html/node/default/miscellaneous_support.rb

Defined Under Namespace

Modules: MiscellaneousSupport, NodesSupport, NumericSupport, StringSupport

Instance Attribute Summary

Attributes inherited from Base

#fields

Instance Method Summary collapse

Methods inherited from Base

#initialize, #parse

Constructor Details

This class inherits a constructor from Aranha::Parsers::Html::Node::Base

Instance Method Details

#boolean_value(node, xpath) ⇒ Boolean

Parameters:

  • node (Nokogiri::XML::Node)
  • xpath (String)

Returns:

  • (Boolean)


16
17
18
# File 'lib/aranha/parsers/html/node/default.rb', line 16

def boolean_value(node, xpath)
  node_value(node, xpath).to_bool
end