Class: HTML::Pipeline::BootstrapFilter

Inherits:
Filter
  • Object
show all
Defined in:
lib/html/pipeline/bootstrap/filter.rb

Instance Method Summary collapse

Instance Method Details

#callObject



6
7
8
9
10
11
12
# File 'lib/html/pipeline/bootstrap/filter.rb', line 6

def call
  doc.search("table").each do |table|
    next unless table["class"].nil?
    table["class"] = "table table-striped table-bordered"
  end
  doc
end