]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed typo in sff.rb
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Fri, 11 Feb 2011 18:55:56 +0000 (18:55 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Fri, 11 Feb 2011 18:55:56 +0000 (18:55 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1272 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/Maasha/lib/sff.rb

index f8b1110219c1adfe7dd552e2e72fb700627f9782..a3497f045e68e7e6808a06870c3be9f859956316 100644 (file)
@@ -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)