class Bchess::PGN::PGNFile
Attributes
content[RW]
filepath[RW]
games[RW]
Public Class Methods
new(filepath)
click to toggle source
# File lib/pgn/pgn_file.rb, line 6 def initialize(filepath) @filepath = filepath end
Public Instance Methods
load_games()
click to toggle source
# File lib/pgn/pgn_file.rb, line 10 def load_games file = File.open(filepath, 'rt') @content = file.read end