Class: RaccMatchParser::DateHeader

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dateObject

Returns the value of attribute date

Returns:

  • (Object)

    the current value of date



136
137
138
# File 'lib/sportdb/parser/racc_tree.rb', line 136

def date
  @date
end

#geoObject

Returns the value of attribute geo

Returns:

  • (Object)

    the current value of geo



136
137
138
# File 'lib/sportdb/parser/racc_tree.rb', line 136

def geo
  @geo
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



136
137
138
# File 'lib/sportdb/parser/racc_tree.rb', line 136

def time
  @time
end

#timezoneObject

Returns the value of attribute timezone

Returns:

  • (Object)

    the current value of timezone



136
137
138
# File 'lib/sportdb/parser/racc_tree.rb', line 136

def timezone
  @timezone
end

Instance Method Details

#pretty_print(printer) ⇒ Object



137
138
139
140
141
142
143
144
# File 'lib/sportdb/parser/racc_tree.rb', line 137

def pretty_print( printer )
  printer.text( "<DateHeader " )
  printer.text( "#{self.date.pretty_inspect}" )
  printer.text( " time=#{self.time.pretty_inspect}" )          if self.time
  printer.text( " geo=#{self.geo.pretty_inspect}" )            if self.geo
  printer.text( " timezone=#{self.timezone}")             if self.timezone
  printer.text( ">")
end