Method: PGN::MoveText#initialize

Defined in:
lib/pgn/game.rb

#initialize(notation, annotation = nil, comment = nil, variations = []) ⇒ MoveText

Returns a new instance of MoveText.



7
8
9
10
11
12
# File 'lib/pgn/game.rb', line 7

def initialize(notation, annotation = nil, comment = nil, variations = [])
  @notation = notation
  @annotation = annotation
  @comment = clean_text(comment)
  @variations = variations
end