Sha256: dbe7e71ca2944afffcea3d0da6e3984b167b8289f4fa184fd8a38dbf1e6941d5

Contents?: true

Size: 1.33 KB

Versions: 6

Compression:

Stored size: 1.33 KB

Contents

require 'rabbit/element/text-element'
require 'rabbit/element/text-container-element'
require 'rabbit/element/text-block-element'

module Rabbit
  module Element
    class Text
      include TextElement
    end

    class TextContainer
      include TextContainerElement
    end

    class TextBlock
      include TextBlockElement
    end

    class Keyword
      include TextContainerElement
    end

    class Comment
      include TextContainerElement
    end

    class Emphasis
      include TextContainerElement
    end

    class Code
      include TextContainerElement
    end

    class Variable
      include TextContainerElement
    end

    class Keyboard
      include TextContainerElement
    end

    class Index
      include TextContainerElement
    end

    class Note
      include TextContainerElement
    end

    class Verbatim
      include TextContainerElement
    end

    class DeletedText
      include TextContainerElement
    end

    class ReferText
      include TextContainerElement

      attr_accessor :to

      # TODO: This makes paragraph instead of word link.
      def draw_sub_elements(canvas, x, y, w, h)
        canvas.draw_link(to) do
          super
        end
      end
    end

    class Subscript
      include TextContainerElement
    end

    class Superscript
      include TextContainerElement
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rabbit-3.0.3 lib/rabbit/element/text.rb
rabbit-3.0.2 lib/rabbit/element/text.rb
rabbit-3.0.1 lib/rabbit/element/text.rb
rabbit-3.0.0 lib/rabbit/element/text.rb
rabbit-2.2.1 lib/rabbit/element/text.rb
rabbit-2.2.0 lib/rabbit/element/text.rb