Class: RaccMatchParser::RefereeLine
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::RefereeLine
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Instance Attribute Summary collapse
-
#country ⇒ Object
Returns the value of attribute country.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#country ⇒ Object
Returns the value of attribute country
7 8 9 |
# File 'lib/sportdb/parser/racc_tree.rb', line 7 def country @country end |
#name ⇒ Object
Returns the value of attribute name
7 8 9 |
# File 'lib/sportdb/parser/racc_tree.rb', line 7 def name @name end |
Instance Method Details
#pretty_print(printer) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/sportdb/parser/racc_tree.rb', line 8 def pretty_print( printer ) printer.text( "<RefereeLine " ) printer.text( self.name ) printer.text( " (#{self.country})" ) if self.country printer.text( ">" ) end |