Class: RaccMatchParser::PenaltiesLine

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#penaltiesObject

Returns the value of attribute penalties

Returns:

  • (Object)

    the current value of penalties



17
18
19
# File 'lib/sportdb/parser/racc_tree.rb', line 17

def penalties
  @penalties
end

Instance Method Details

#pretty_print(printer) ⇒ Object



18
19
20
21
22
# File 'lib/sportdb/parser/racc_tree.rb', line 18

def pretty_print( printer )
  printer.text( "<PenaltiesLine " )
  printer.text( self.penalties.pretty_inspect )
  printer.text( ">" )
end