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



74
75
76
# File 'lib/sportdb/parser/racc_tree.rb', line 74

def date
  @date
end

Instance Method Details

#pretty_print(printer) ⇒ Object



75
76
77
78
# File 'lib/sportdb/parser/racc_tree.rb', line 75

def pretty_print( printer )
  printer.text( "<DateHeader " )
  printer.text( "#{self.date.pretty_inspect}>" )
end