Class: Fbtxt::Parser::NotaBene
- Defined in:
- lib/fbtxt/parser/parse_tree.rb
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
148 149 150 |
# File 'lib/fbtxt/parser/parse_tree.rb', line 148 def text @text end |
Instance Method Details
#as_json ⇒ Object
149 150 151 |
# File 'lib/fbtxt/parser/parse_tree.rb', line 149 def as_json(*) ['<NotaBene>', { 'text' => text.as_json } ] end |
#pretty_print(q) ⇒ Object
152 153 154 155 156 |
# File 'lib/fbtxt/parser/parse_tree.rb', line 152 def pretty_print( q ) q.group( 4, '<NotaBene ', '>' ) do q.text( text ) end end |