Class: RaccMatchParser::GoalLine

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#goals1Object

Returns the value of attribute goals1

Returns:

  • (Object)

    the current value of goals1



118
119
120
# File 'lib/sportdb/parser/racc_tree.rb', line 118

def goals1
  @goals1
end

#goals2Object

Returns the value of attribute goals2

Returns:

  • (Object)

    the current value of goals2



118
119
120
# File 'lib/sportdb/parser/racc_tree.rb', line 118

def goals2
  @goals2
end

Instance Method Details

#pretty_print(printer) ⇒ Object



119
120
121
122
123
124
# File 'lib/sportdb/parser/racc_tree.rb', line 119

def pretty_print( printer )
  printer.text( "<GoalLine " )
  printer.text( "goals1=" + self.goals1.pretty_inspect + "," )
  printer.breakable
  printer.text( "goals2=" + self.goals2.pretty_inspect + ">" )
end