Sha256: a84d7fe3b44e31d9e09b59505f6d47ad332f34fa6a4984e548440a303a2e8199

Contents?: true

Size: 297 Bytes

Versions: 4

Compression:

Stored size: 297 Bytes

Contents

module Gemtext
  class Preformatted < Node
    def initialize(content, caption = nil)
      super content
      @caption = caption
    end

    def self.[](content, caption = nil)
      new content, caption
    end

    def inspect
      "#{self.class}{#{content}|{#{@caption}}"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gemtext-1.0.3 lib/gemtext/preformatted.rb
gemtext-1.0.2 lib/gemtext/preformatted.rb
gemtext-1.0.1 lib/gemtext/preformatted.rb
gemtext-1.0.0 lib/gemtext/preformatted.rb