# File lib/bio/db/fantom.rb, line 186 def [](*arg) if arg[0].is_a?(String) and arg.size == 1 then get(arg[0]) else to_a[*arg] end end
# File lib/bio/db/fantom.rb, line 194 def cloneids unless defined?(@cloneids) @cloneids = to_a.collect { |x| x.cloneid } end @cloneids end
# File lib/bio/db/fantom.rb, line 162 def each to_a.each { |x| yield x } end
# File lib/bio/db/fantom.rb, line 174 def get(idstr) unless defined?(@hash) @hash = {} end unless @hash.member?(idstr) then @hash[idstr] = self.find do |x| x.altid.values.index(idstr) end end @hash[idstr] end
Generated with the Darkfish Rdoc Generator 2.