Class: Roadie::Rails::DocumentBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/roadie/rails/document_builder.rb

Class Method Summary collapse

Class Method Details

.build(html, options) ⇒ Object



6
7
8
9
10
# File 'lib/roadie/rails/document_builder.rb', line 6

def self.build(html, options)
  document = Document.new(html)
  options.apply_to document
  document
end