Class: HTML::Pipeline::BootstrapFilter
- Inherits:
-
Filter
- Object
- Filter
- HTML::Pipeline::BootstrapFilter
- Defined in:
- lib/html/pipeline/bootstrap/filter.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
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 |