Class: RaccMatchParser::GoalType

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#freekickObject

Returns the value of attribute freekick

Returns:

  • (Object)

    the current value of freekick



526
527
528
# File 'lib/sportdb/parser/racc_tree.rb', line 526

def freekick
  @freekick
end

#headerObject

Returns the value of attribute header

Returns:

  • (Object)

    the current value of header



526
527
528
# File 'lib/sportdb/parser/racc_tree.rb', line 526

def header
  @header
end

#ogObject

Returns the value of attribute og

Returns:

  • (Object)

    the current value of og



526
527
528
# File 'lib/sportdb/parser/racc_tree.rb', line 526

def og
  @og
end

#penObject

Returns the value of attribute pen

Returns:

  • (Object)

    the current value of pen



526
527
528
# File 'lib/sportdb/parser/racc_tree.rb', line 526

def pen
  @pen
end

Instance Method Details

#pretty_print(printer) ⇒ Object



536
537
538
# File 'lib/sportdb/parser/racc_tree.rb', line 536

def pretty_print( printer ) 
   printer.text( to_s ) 
end

#to_sObject



527
528
529
530
531
532
533
534
# File 'lib/sportdb/parser/racc_tree.rb', line 527

def to_s
  buf = String.new
  buf << "(og)"   if self.og
  buf << "(pen)"  if self.pen
  buf << "(f)"    if self.freekick
  buf << "(h)"    if self.header
  buf
end