Sha256: b8170416ef961b8ee63656f9ef7a60d426790cd5b48e208c9254d054993fa641

Contents?: true

Size: 1.34 KB

Versions: 3

Compression:

Stored size: 1.34 KB

Contents

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

module Rabbit
  module Element
    class Text
      include TextElement
    end

    class TextContainer
      include TextContainerElement
    end

    class PreformattedBlock
      include TextContainerElement
      include BlockHorizontalCentering

      def to_html(generator)
        "<pre>#{super}</pre>"
      end
    end

    class PreformattedText
      include TextContainerElement
    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
    end

    class Subscript
      include TextContainerElement
    end

    class Superscript
      include TextContainerElement
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rabbit-0.6.4 lib/rabbit/element/text.rb
rabbit-0.6.3 lib/rabbit/element/text.rb
rabbit-0.6.2 lib/rabbit/element/text.rb