Class: RaccMatchParser::DateHeaderLegs

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#date1Object

Returns the value of attribute date1

Returns:

  • (Object)

    the current value of date1



179
180
181
# File 'lib/sportdb/parser/racc_tree.rb', line 179

def date1
  @date1
end

#date2Object

Returns the value of attribute date2

Returns:

  • (Object)

    the current value of date2



179
180
181
# File 'lib/sportdb/parser/racc_tree.rb', line 179

def date2
  @date2
end

Instance Method Details

#pretty_print(printer) ⇒ Object



180
181
182
183
184
185
# File 'lib/sportdb/parser/racc_tree.rb', line 180

def pretty_print( printer )
  printer.text( "<DateHeaderLegs " )
  printer.text( "leg1=#{self.date1.pretty_inspect}" )
  printer.text( " leg2=#{self.date2.pretty_inspect}" )
  printer.text( ">")
end