Class: RaccMatchParser::Referee

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#countryObject

Returns the value of attribute country

Returns:

  • (Object)

    the current value of country



27
28
29
# File 'lib/sportdb/parser/racc_tree.rb', line 27

def country
  @country
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of 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_sObject



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