Sha256: add5adcb5b9eb88f69635653cc3a064124d5a0e188681173c2bf664611f60cd9

Contents?: true

Size: 204 Bytes

Versions: 2

Compression:

Stored size: 204 Bytes

Contents

class SGF::Variation
  attr_reader :root
  def initialize
    @root = SGF::Node.new
    @size = 1
  end

  def append node
    @root.add_children node
    @size += 1
  end

  def size
    @size
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
SgfParser-3.0.1 lib/sgf/variation.rb
SgfParser-3.0.0 lib/sgf/variation.rb