lib/crossyglot/formats/puz.rb
# Parses a puzzle from the IO object given
#
# @param [IO] puzfile A subclass of IO with the puzzle data
# @options [Hash] options See #parse_file options
# @returns self
Parses a puzzle from the IO object given
Parses a puzzle from the IO object given
def parse_io(puzfile, options={})
        parse_header(puzfile)
        parse_solution(puzfile)
        parse_strings_sections(puzfile)
        renumber_cells(@parsed_clues)
        parse_extras(puzfile)
        @post_end ||= ''
        @post_end << puzfile.read
        validate_checksums  if options[:strict]
        update_word_lengths!
        self
      end
def parse_io ( puzfile , options = { } ) parse_header ( puzfile ) parse_solution ( puzfile ) parse_strings_sections ( puzfile ) renumber_cells ( @parsed_clues ) parse_extras ( puzfile ) @post_end ||= '' @post_end << puzfile . read validate_checksums if options [ :strict ] update_word_lengths! self end
Parses a puzzle from the IO object given
Parses a puzzle from the IO object given
None
puzfile
options
puzfile A subclass of IO with the puzzle data
puzfile A subclass of IO with the puzzle data
options
[Hash] options See #parse_file options
[ Hash ] options See #parse_file options