lib/crossyglot/formats/puz.rb
def validate_checksums
        [:header_cksum, :puzzle_cksum, :icheated_cksum].each do |cksum|
          unless send(cksum) == headers[cksum]
            raise InvalidChecksumError.new("#{cksum.to_s.sub(/_/, ' ')} is invalid")
          end
        end
      end
# Raise an error if the checksums in the headers hash do not match up
Raise an error if the checksums in the headers hash do not match up
Raise an error if the checksums in the headers hash do not match up
def validate_checksums
        [:header_cksum, :puzzle_cksum, :icheated_cksum].each do |cksum|
          unless send(cksum) == headers[cksum]
            raise InvalidChecksumError.new("#{cksum.to_s.sub(/_/, ' ')} is invalid")
          end
        end
      end
def validate_checksums [ :header_cksum , :puzzle_cksum , :icheated_cksum ] . each do | cksum | unless send ( cksum ) == headers [ cksum ] raise InvalidChecksumError . new ( "#{cksum.to_s.sub(/_/, ' ')} is invalid" ) end end end
Raise an error if the checksums in the headers hash do not match up
Raise an error if the checksums in the headers hash do not match up