Sha256: d1df63e2cbbed3e5574608dbbce65520dd64dc863b316276d8d167e4559eb971

Contents?: true

Size: 1.36 KB

Versions: 4

Compression:

Stored size: 1.36 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 PreformattedBlock
      include TextBlockElement

      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

4 entries across 4 versions & 1 rubygems

Version Path
rabbit-0.9.3 lib/rabbit/element/text.rb
rabbit-0.9.2 lib/rabbit/element/text.rb
rabbit-0.9.1 lib/rabbit/element/text.rb
rabbit-0.9.0 lib/rabbit/element/text.rb