Class: Gemtext::SubHeading

Inherits:
Node
  • Object
show all
Defined in:
lib/gemtext/sub_heading.rb

Instance Attribute Summary

Attributes inherited from Node

#content

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#==, #deconstruct_keys, #initialize

Constructor Details

This class inherits a constructor from Gemtext::Node

Class Method Details

.[](content) ⇒ Object



3
4
5
# File 'lib/gemtext/sub_heading.rb', line 3

def self.[](content)
  new content
end

Instance Method Details

#inspectObject



7
8
9
# File 'lib/gemtext/sub_heading.rb', line 7

def inspect
  "#{self.class}{#{content}}"
end