Class: BridgetownNotion::Parsers::BlockParser
- Inherits:
-
Object
- Object
- BridgetownNotion::Parsers::BlockParser
- Defined in:
- lib/bridgetown_notion/parsers/block_parser.rb
Class Method Summary collapse
Class Method Details
.parse(block) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/bridgetown_notion/parsers/block_parser.rb', line 6 def self.parse(block) for_each_block_type do |block_type| content = block.dig(block_type, "rich_text", 0, "text", "content") return [block_type, content] if content end [] end |