Class: RaccMatchParser::MatchLineWalkover
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::MatchLineWalkover
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Instance Attribute Summary collapse
-
#note ⇒ Object
Returns the value of attribute note.
-
#team1 ⇒ Object
Returns the value of attribute team1.
-
#team2 ⇒ Object
Returns the value of attribute team2.
Instance Method Summary collapse
Instance Attribute Details
#note ⇒ Object
Returns the value of attribute note
251 252 253 |
# File 'lib/sportdb/parser/racc_tree.rb', line 251 def note @note end |
#team1 ⇒ Object
Returns the value of attribute team1
251 252 253 |
# File 'lib/sportdb/parser/racc_tree.rb', line 251 def team1 @team1 end |
#team2 ⇒ Object
Returns the value of attribute team2
251 252 253 |
# File 'lib/sportdb/parser/racc_tree.rb', line 251 def team2 @team2 end |
Instance Method Details
#pretty_print(printer) ⇒ Object
252 253 254 255 256 257 |
# File 'lib/sportdb/parser/racc_tree.rb', line 252 def pretty_print( printer ) printer.text( "<MatchLineWalkover " ) printer.text( "#{self.team1} w/o #{self.team2}") printer.text( " note=#{self.note.pretty_inspect}" ) if self.note printer.text( ">" ) end |