Class: Fbtxt::Parser::Heading3
- Defined in:
- lib/fbtxt/parser/parse_tree.rb
Overview
Heading2
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text
188 189 190 |
# File 'lib/fbtxt/parser/parse_tree.rb', line 188 def text @text end |
Instance Method Details
#as_json ⇒ Object
189 190 191 |
# File 'lib/fbtxt/parser/parse_tree.rb', line 189 def as_json(*) ['<Heading3>', { 'text' => text.as_json }] end |
#pretty_print(q) ⇒ Object
193 194 195 196 197 |
# File 'lib/fbtxt/parser/parse_tree.rb', line 193 def pretty_print( q ) q.group( 4, '<Heading3 ', '>' ) do q.text( text ) end end |