Class: Fbtxt::Parser::MatchLineBye

Inherits:
Struct
  • Object
show all
Defined in:
lib/fbtxt/parser/parse_tree-match.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#noteObject

Returns the value of attribute note

Returns:

  • (Object)

    the current value of note



6
7
8
# File 'lib/fbtxt/parser/parse_tree-match.rb', line 6

def note
  @note
end

#teamObject

Returns the value of attribute team

Returns:

  • (Object)

    the current value of team



6
7
8
# File 'lib/fbtxt/parser/parse_tree-match.rb', line 6

def team
  @team
end

Instance Method Details

#pretty_print(q) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/fbtxt/parser/parse_tree-match.rb', line 7

def pretty_print( q )
  q.group( 4, '<MatchLineBye ', '>') do        ##  group( indent, open, close)
    q.text( "#{team} bye")
    if note
      q.text( " note=" )
      q.pp( note )
    end
  end
end