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



255
256
257
# File 'lib/sportdb/parser/racc_tree.rb', line 255

def text
  @text
end

Instance Method Details

#pretty_print(printer) ⇒ Object



256
257
258
# File 'lib/sportdb/parser/racc_tree.rb', line 256

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