From: martinahansen Date: Fri, 11 Feb 2011 18:55:56 +0000 (+0000) Subject: fixed typo in sff.rb X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bf924d77e625d4d86a40bd2ee5a6e3bedad5f3dc;p=biopieces.git fixed typo in sff.rb git-svn-id: http://biopieces.googlecode.com/svn/trunk@1272 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/code_ruby/Maasha/lib/sff.rb b/code_ruby/Maasha/lib/sff.rb index f8b1110..a3497f0 100644 --- a/code_ruby/Maasha/lib/sff.rb +++ b/code_ruby/Maasha/lib/sff.rb @@ -52,7 +52,7 @@ class SFF end end - # Method to initialize a SFF object along with + # Method to initialize an SFF object along with # instance variables pertaining to the SFF header # section. def initialize(io) @@ -125,7 +125,7 @@ class SFF @io.read(eight_byte_padding) unless eight_byte_padding == 8 end - # Method to parse a read section of a SFF file. + # Method to parse a read section of an SFF file. def read_parse return nil if @number_of_reads == @@count @@ -165,19 +165,19 @@ class SFF read end - # Method to check the magic number of a SFF file. + # Method to check the magic number of an SFF file. # Raises an error if the magic number don't match. def check_magic_number raise SFFError, "Badly formatted SFF file." unless @magic_number == 779314790 end - # Method to check the version number of a SFF file. + # Method to check the version number of an SFF file. # Raises an error if the version don't match. def check_version - raise SFFError, "Wrong version #{@version}" unless @version.to_i == 1 + raise SFFError, "Wrong version: #{@version}" unless @version.to_i == 1 end - # Method to check the header length of a SFF file. + # Method to check the header length of an SFF file. # Raises an error if the header length don't match # the file position after reading the header section. def check_header_length @@ -232,8 +232,8 @@ class Read private - # Method that extracts the X/Y coordinates from a - # SFF read name encoded with base36. + # Method that extracts the X/Y coordinates from + # an SFF read name encoded with base36. def coordinates_get base36 = self.name[-5, 5] num = Base36.decode(base36)