Sha256: ff02717614f4390e2ea2cb679ef57d4d3495166877c17d0680ee54bfa141d6c8

Contents?: true

Size: 372 Bytes

Versions: 11

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true

module EditorJs
  module Blocks
    class DelimiterBlock < Base
      def schema
        YAML.safe_load(<<~YAML)
          type: object
          additionalProperties: false
        YAML
      end

      def render(_options = {})
        content_tag :hr, '', class: css_name
      end

      def plain
        ''
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
editor_js-0.3.3 lib/editor_js/blocks/delimiter_block.rb
editor_js-0.3.2 lib/editor_js/blocks/delimiter_block.rb
editor_js-0.3.1 lib/editor_js/blocks/delimiter_block.rb
editor_js-0.3.0 lib/editor_js/blocks/delimiter_block.rb
editor_js-0.2.5 lib/editor_js/blocks/delimiter_block.rb
editor_js-0.2.4 lib/editor_js/blocks/delimiter_block.rb
editor_js-0.2.3 lib/editor_js/blocks/delimiter_block.rb
editor_js-0.2.2 lib/editor_js/blocks/delimiter_block.rb
editor_js-0.2.1 lib/editor_js/blocks/delimiter_block.rb
editor_js-0.2.0 lib/editor_js/blocks/delimiter_block.rb
editor_js-0.1.0 lib/editor_js/blocks/delimiter_block.rb