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
284 285 286 |
# File 'lib/sportdb/parser/racc_tree.rb', line 284 def note @note end |
#team1 ⇒ Object
Returns the value of attribute team1
284 285 286 |
# File 'lib/sportdb/parser/racc_tree.rb', line 284 def team1 @team1 end |
#team2 ⇒ Object
Returns the value of attribute team2
284 285 286 |
# File 'lib/sportdb/parser/racc_tree.rb', line 284 def team2 @team2 end |
Instance Method Details
#pretty_print(printer) ⇒ Object
285 286 287 288 289 290 |
# File 'lib/sportdb/parser/racc_tree.rb', line 285 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 |