Module: PortableText::Html::Configured
- Included in:
- BlockTypes::Block, BlockTypes::List, BlockTypes::Span, Serializer
- Defined in:
- lib/portable_text/html/configured.rb
Instance Method Summary collapse
Instance Method Details
#block_type(type) ⇒ Object
6 7 8 |
# File 'lib/portable_text/html/configured.rb', line 6 def block_type(type) config.block.types.fetch(type.to_sym, BlockTypes::Null) end |
#config ⇒ Object
4 |
# File 'lib/portable_text/html/configured.rb', line 4 def config = Config.config |