Class: Locator::Dom::Nokogiri::Page
- Defined in:
- lib/locator/dom/nokogiri/page.rb
Instance Method Summary collapse
- #dom ⇒ Object
-
#initialize(dom) ⇒ Page
constructor
A new instance of Page.
Constructor Details
#initialize(dom) ⇒ Page
Returns a new instance of Page.
5 6 7 8 |
# File 'lib/locator/dom/nokogiri/page.rb', line 5 def initialize(dom) dom = ::Nokogiri::HTML::Document.parse(dom) if dom.is_a?(String) super end |
Instance Method Details
#dom ⇒ Object
10 11 12 |
# File 'lib/locator/dom/nokogiri/page.rb', line 10 def dom element end |