Class: PortableText::Html::Serializer

Inherits:
BaseComponent
  • Object
show all
Includes:
Configured
Defined in:
lib/portable_text/html/serializer.rb

Instance Method Summary collapse

Methods included from Configured

#block_type, #config

Methods inherited from BaseComponent

option, param

Instance Method Details

#content(**_options) ⇒ Object



8
# File 'lib/portable_text/html/serializer.rb', line 8

def content(**_options) = self

#view_templateObject



10
11
12
13
14
# File 'lib/portable_text/html/serializer.rb', line 10

def view_template
  @blocks.each do |block|
    render block_type(block.type).new(block)
  end
end