Class: RaccMatchParser::Heading1

Inherits:
Struct
  • Object
show all
Defined in:
lib/sportdb/parser/racc_tree.rb

Overview

todo/check - use a generic Heading instead of Heading1/2/3 - why? why not?

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



222
223
224
# File 'lib/sportdb/parser/racc_tree.rb', line 222

def text
  @text
end

Instance Method Details

#pretty_print(printer) ⇒ Object



223
224
225
# File 'lib/sportdb/parser/racc_tree.rb', line 223

def pretty_print( printer )
  printer.text( "<Heading1 #{self.text}>" )
end