Sha256: ca6f4ba1a3009823f42270a0fb08fb247b3bc153fa2d781cb2a8c2c0f5e8fb4a
Contents?: true
Size: 498 Bytes
Versions: 2
Compression:
Stored size: 498 Bytes
Contents
module Gemtext # `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. class Node # The content of the node attr_reader :content def initialize(content = nil) @content = content end def inspect "#{self.class}{#{content}}" end def ==(other) other.class == self.class && other.content == @content end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gemtext-1.0.1 | lib/gemtext/node.rb |
gemtext-1.0.0 | lib/gemtext/node.rb |