Method: Katalyst::Content::Tables::Importer.call

Defined in:
app/models/katalyst/content/tables/importer.rb

.call(table, value) ⇒ Object

Update a table from an HTML5 fragment and apply normalisation rules.

Parameters:

  • table (Katalyst::Content::Table)

    the table to update

  • value (Nokogiri::XML::Node, ActionText::RichText, String)

    the provided HTML fragment



19
20
21
# File 'app/models/katalyst/content/tables/importer.rb', line 19

def self.call(table, value)
  new(table).call(wrap(value))
end