Class: Derelicte::InlinerJob

Inherits:
Object
  • Object
show all
Defined in:
lib/derelicte/inliner_job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(doc, analyzer) ⇒ InlinerJob

Returns a new instance of InlinerJob.



5
6
7
# File 'lib/derelicte/inliner_job.rb', line 5

def initialize(doc, analyzer)
  @doc, @analyzer = doc, analyzer
end

Instance Attribute Details

#docObject (readonly)

Returns the value of attribute doc.



3
4
5
# File 'lib/derelicte/inliner_job.rb', line 3

def doc
  @doc
end

Instance Method Details

#apply_rules_to_docObject



9
10
11
12
13
# File 'lib/derelicte/inliner_job.rb', line 9

def apply_rules_to_doc
  each_elements do |element|
    apply_rules_to(element)
  end
end