Class: RaccMatchParser::RefereeLine

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



7
8
9
# File 'lib/sportdb/parser/racc_tree.rb', line 7

def country
  @country
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

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