Class: BlockEditor::Blocks::Reusable
- Defined in:
- lib/block_editor/blocks/reusable.rb
Overview
Outputs Reusable block
Class Method Summary collapse
- .name ⇒ Object
-
.render(options = {}) ⇒ Object
Render the block.
Methods inherited from Base
Class Method Details
.name ⇒ Object
6 7 8 |
# File 'lib/block_editor/blocks/reusable.rb', line 6 def self.name 'block' end |
.render(options = {}) ⇒ Object
Render the block
11 12 13 |
# File 'lib/block_editor/blocks/reusable.rb', line 11 def self.render( = {}) BlockListRenderer.render(BlockEditor::BlockList.find(['ref']).content) end |