class RenderEditorjs::Blocks::Base

Attributes

output_buffer[RW]

ActionView::Helpers::TagHelper requires output_buffer accessor

raw[RW]

ActionView::Helpers::TagHelper requires output_buffer accessor

Public Instance Methods

valid?(data) click to toggle source
# File lib/render_editorjs/blocks/base.rb, line 16
def valid?(data)
  validator(data).valid?
end
validator(data) click to toggle source
# File lib/render_editorjs/blocks/base.rb, line 20
def validator(data)
  Validator.new(data, self.class::SCHEMA)
end