Sha256: 496cee9cd6f55b7c3ba69cf243d2737189ed37932c9a4b7136baf7ba5511ba15

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

module ProsemirrorToHtml
  module Marks
    class Mark
      @mark_type = nil
      @tag_name = nil

      class << self
        attr_reader :mark_type, :tag_name
      end

      def initialize(mark)
        @mark = mark
      end

      def matching
        return @mark.type == self.class.mark_type if @mark.type

        false
      end

      def tag
        self.class.tag_name
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prosemirror_to_html-0.2.0 lib/prosemirror_to_html/marks/mark.rb