class Gemtext::Node

`Gemtext::Node` represents a piece of a document. There are a limited number of node types. They store their content with any formatting needed to identify that content removed.

Attributes

content[R]

The content of the node

Public Class Methods

new(content = nil) click to toggle source
# File lib/gemtext/node.rb, line 9
def initialize(content = nil)
  @content = content
end

Public Instance Methods

==(other) click to toggle source
# File lib/gemtext/node.rb, line 17
def ==(other)
  other.class == self.class && other.content == @content
end
inspect() click to toggle source
# File lib/gemtext/node.rb, line 13
def inspect
  "#{self.class}{#{content}}"
end