Class: Wombat::Property::Locators::Html
- Defined in:
- lib/wombat/property/locators/html.rb
Instance Method Summary collapse
Methods inherited from Base
Methods included from Wombat::Processing::NodeSelector
Constructor Details
This class inherits a constructor from Wombat::Property::Locators::Base
Instance Method Details
#locate(context, page = nil) ⇒ Object
7 8 9 10 |
# File 'lib/wombat/property/locators/html.rb', line 7 def locate(context, page = nil) node = locate_nodes(context).first super { node.inner_html.strip } end |