Class: Gemtext::Heading

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

Instance Attribute Summary

Attributes inherited from Node

#content

Class 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/heading.rb', line 3

def self.[](content)
  new content
end