Class: RaccMatchParser::RoundHeader

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#groupObject

Returns the value of attribute group

Returns:

  • (Object)

    the current value of group



154
155
156
# File 'lib/sportdb/parser/racc_tree.rb', line 154

def group
  @group
end

#namesObject

Returns the value of attribute names

Returns:

  • (Object)

    the current value of names



154
155
156
# File 'lib/sportdb/parser/racc_tree.rb', line 154

def names
  @names
end

Instance Method Details

#pretty_print(printer) ⇒ Object



155
156
157
158
159
160
# File 'lib/sportdb/parser/racc_tree.rb', line 155

def pretty_print( printer )
  printer.text( "<RoundHeader " )
  printer.text( "#{self.names.join(', ')}" )
  printer.text( " group=#{self.group}")    if self.group
  printer.text( ">" )
end