Method: Brief::Document#css
- Defined in:
- lib/brief/document.rb
#css(*args, &block) ⇒ Object
Shortcut for querying the rendered HTML by css selectors.
This will allow for model data attributes to be pulled from the document contents.
Returns a Nokogiri::HTML::Element
190 191 192 |
# File 'lib/brief/document.rb', line 190 def css(*args, &block) parser.send(:css, *args, &block) end |