Class: SportDb::Parser::GoalLineAlt

Inherits:
Struct
  • Object
show all
Defined in:
lib/sportdb/parser/parse_tree-match.rb

Overview

check - use a different name e.g. GoalLineScore or such - why? why not?

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#goalsObject

Returns the value of attribute goals

Returns:

  • (Object)

    the current value of goals



150
151
152
# File 'lib/sportdb/parser/parse_tree-match.rb', line 150

def goals
  @goals
end

Instance Method Details

#pretty_print(q) ⇒ Object



151
152
153
154
155
156
# File 'lib/sportdb/parser/parse_tree-match.rb', line 151

def pretty_print( q )
  q.group( 4, '<GoalLineAlt ', '>') do
    q.text( "goals=" )
    q.pp( goals )
  end
end