Class: RaccMatchParser::Referee
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::Referee
- 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
27 28 29 |
# File 'lib/sportdb/parser/racc_tree.rb', line 27 def country @country end |
#name ⇒ Object
Returns the value of attribute name
27 28 29 |
# File 'lib/sportdb/parser/racc_tree.rb', line 27 def name @name end |
Instance Method Details
#pretty_print(printer) ⇒ Object
35 36 37 |
# File 'lib/sportdb/parser/racc_tree.rb', line 35 def pretty_print( printer ) printer.text( to_s ) end |
#to_s ⇒ Object
28 29 30 31 32 33 |
# File 'lib/sportdb/parser/racc_tree.rb', line 28 def to_s buf = String.new buf << self.name buf << " (#{self.country})" if self.country buf end |