Class: RaccMatchParser::MatchLine
- Inherits:
-
Struct
- Object
- Struct
- RaccMatchParser::MatchLine
- Defined in:
- lib/sportdb/parser/racc_tree.rb
Overview
tty = TELETYPE MODE for teams and score!!
Instance Attribute Summary collapse
-
#att ⇒ Object
Returns the value of attribute att.
-
#date ⇒ Object
Returns the value of attribute date.
-
#geo ⇒ Object
Returns the value of attribute geo.
-
#header ⇒ Object
Returns the value of attribute header.
-
#neutral ⇒ Object
Returns the value of attribute neutral.
-
#note ⇒ Object
Returns the value of attribute note.
-
#num ⇒ Object
Returns the value of attribute num.
-
#score ⇒ Object
Returns the value of attribute score.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_inline ⇒ Object
Returns the value of attribute status_inline.
-
#status_note ⇒ Object
Returns the value of attribute status_note.
-
#team1 ⇒ Object
Returns the value of attribute team1.
-
#team2 ⇒ Object
Returns the value of attribute team2.
-
#time ⇒ Object
Returns the value of attribute time.
-
#time_local ⇒ Object
Returns the value of attribute time_local.
-
#tty ⇒ Object
Returns the value of attribute tty.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
Instance Attribute Details
#att ⇒ Object
Returns the value of attribute att
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def att @att end |
#date ⇒ Object
Returns the value of attribute date
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def date @date end |
#geo ⇒ Object
Returns the value of attribute geo
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def geo @geo end |
#header ⇒ Object
Returns the value of attribute header
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def header @header end |
#neutral ⇒ Object
Returns the value of attribute neutral
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def neutral @neutral end |
#note ⇒ Object
Returns the value of attribute note
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def note @note end |
#num ⇒ Object
Returns the value of attribute num
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def num @num end |
#score ⇒ Object
Returns the value of attribute score
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def score @score end |
#status ⇒ Object
Returns the value of attribute status
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def status @status end |
#status_inline ⇒ Object
Returns the value of attribute status_inline
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def status_inline @status_inline end |
#status_note ⇒ Object
Returns the value of attribute status_note
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def status_note @status_note end |
#team1 ⇒ Object
Returns the value of attribute team1
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def team1 @team1 end |
#team2 ⇒ Object
Returns the value of attribute team2
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def team2 @team2 end |
#time ⇒ Object
Returns the value of attribute time
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def time @time end |
#time_local ⇒ Object
Returns the value of attribute time_local
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def time_local @time_local end |
#tty ⇒ Object
Returns the value of attribute tty
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def tty @tty end |
#year ⇒ Object
Returns the value of attribute year
320 321 322 |
# File 'lib/sportdb/parser/racc_tree.rb', line 320 def year @year end |
Instance Method Details
#pretty_print(printer) ⇒ Object
330 331 332 333 334 335 336 337 338 339 340 341 342 343 |
# File 'lib/sportdb/parser/racc_tree.rb', line 330 def pretty_print( printer ) printer.text( "<MatchLine " ) printer.text( "#{self.team1} v #{self.team2}") printer.breakable members.zip(values) do |name, value| next if [:team1, :team2].include?( name ) next if value.nil? printer.text( "#{name}=#{value.pretty_inspect}" ) end printer.text( ">" ) end |