class Gemtext::Preformatted
Public Class Methods
[](content, caption = nil)
click to toggle source
# File lib/gemtext/preformatted.rb, line 8 def self.[](content, caption = nil) new content, caption end
new(content, caption = nil)
click to toggle source
Calls superclass method
Gemtext::Node::new
# File lib/gemtext/preformatted.rb, line 3 def initialize(content, caption = nil) super content @caption = caption end
Public Instance Methods
inspect()
click to toggle source
# File lib/gemtext/preformatted.rb, line 12 def inspect "#{self.class}{#{content}|{#{@caption}}" end