Class: RenderEditorjs::Blocks::Base
- Inherits:
-
Object
- Object
- RenderEditorjs::Blocks::Base
- Includes:
- ActionView::Helpers::TagHelper, ActionView::Helpers::TextHelper
- Defined in:
- lib/render_editorjs/blocks/base.rb
Instance Attribute Summary collapse
-
#output_buffer ⇒ Object
ActionView::Helpers::TagHelper requires output_buffer accessor.
-
#raw ⇒ Object
ActionView::Helpers::TagHelper requires output_buffer accessor.
Instance Method Summary collapse
Instance Attribute Details
#output_buffer ⇒ Object
ActionView::Helpers::TagHelper requires output_buffer accessor
14 15 16 |
# File 'lib/render_editorjs/blocks/base.rb', line 14 def output_buffer @output_buffer end |
#raw ⇒ Object
ActionView::Helpers::TagHelper requires output_buffer accessor
14 15 16 |
# File 'lib/render_editorjs/blocks/base.rb', line 14 def raw @raw end |
Instance Method Details
#valid?(data) ⇒ Boolean
16 17 18 |
# File 'lib/render_editorjs/blocks/base.rb', line 16 def valid?(data) validator(data).valid? end |