class PGN::MoveText

Attributes

annotation[RW]
comment[RW]
notation[RW]
variations[RW]

Public Class Methods

new(notation, annotation = nil, comment = nil, variations = nil) click to toggle source
# File lib/pgn/game.rb, line 7
def initialize(notation, annotation = nil, comment = nil, variations = nil)
  @notation = notation
  @annotation = annotation
  @comment = comment
  @variations = variations
end

Public Instance Methods

==(m) click to toggle source
# File lib/pgn/game.rb, line 14
def ==(m)
  self.to_s == m.to_s
end
eql?(m) click to toggle source
# File lib/pgn/game.rb, line 18
def eql?(m)
  self == m
end
hash() click to toggle source
# File lib/pgn/game.rb, line 22
def hash
  @notation.hash
end
to_s() click to toggle source
# File lib/pgn/game.rb, line 26
def to_s
  @notation
end