Method: Brief::Document#parser

Defined in:
lib/brief/document.rb

#parserObject

The Parser wraps the rendered HTML in a nokogiri element so we can easily manipulate it. Prior to doing so, we use the structure analyzer to build more metadata into the markup



292
293
294
295
296
297
298
299
300
# File 'lib/brief/document.rb', line 292

def parser
  @parser ||= begin
                structure.prescan

                structure.create_wrappers.tap do |f|
                  transformer_for(f).all
                end
              end
end