class Bio::NCBIDB
Public Class Methods
Source
# File lib/bio/db.rb 257 def initialize(entry, tagsize) 258 @tagsize = tagsize 259 @orig = entry2hash(entry.strip) # Hash of the original entry 260 @data = {} # Hash of the parsed entry 261 end
The entire entry is passed as a String. The length of the tag field is passed as an Integer. Parses the entry roughly by the entry2hash method and returns a database object.