Class: Gemtext::Text
Instance Attribute Summary
Attributes inherited from Node
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Node
#deconstruct_keys, #initialize, #inspect
Constructor Details
This class inherits a constructor from Gemtext::Node
Class Method Details
.[](content) ⇒ Object
3 4 5 |
# File 'lib/gemtext/text.rb', line 3 def self.[](content) new content end |
Instance Method Details
#==(other) ⇒ Object
7 8 9 |
# File 'lib/gemtext/text.rb', line 7 def ==(other) other.class == self.class && other.content == @content end |