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



143
144
145
# File 'lib/sportdb/parser/racc_tree.rb', line 143

def date
  @date
end

#geoObject

Returns the value of attribute geo

Returns:

  • (Object)

    the current value of geo



143
144
145
# File 'lib/sportdb/parser/racc_tree.rb', line 143

def geo
  @geo
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



143
144
145
# File 'lib/sportdb/parser/racc_tree.rb', line 143

def time
  @time
end

#timezoneObject

Returns the value of attribute timezone

Returns:

  • (Object)

    the current value of timezone



143
144
145
# File 'lib/sportdb/parser/racc_tree.rb', line 143

def timezone
  @timezone
end

Instance Method Details

#pretty_print(printer) ⇒ Object



144
145
146
147
148
149
150
151
# File 'lib/sportdb/parser/racc_tree.rb', line 144

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