[BioRuby-cvs] bioruby/lib/bio/sequence format_raw.rb,NONE,1.1.2.1

Naohisa Goto ngoto at dev.open-bio.org
Tue Mar 4 11:28:49 UTC 2008


Update of /home/repository/bioruby/bioruby/lib/bio/sequence
In directory dev.open-bio.org:/tmp/cvs-serv7886/lib/bio/sequence

Added Files:
      Tag: BRANCH-biohackathon2008
	format_raw.rb 
Log Message:
Raw sequence format (sequence only; without any newline and white-spaces)
formatter class is newly added. (Internal use only)


--- NEW FILE: format_raw.rb ---
#
# = bio/sequence/format_raw.rb - Raw sequence formatter
#
# Copyright::  Copyright (C) 2008 Naohisa Goto <ng at bioruby.org>
# License::    The Ruby License
#
# $Id: format_raw.rb,v 1.1.2.1 2008/03/04 11:28:46 ngoto Exp $
#

require 'bio/sequence/format'

module Bio::Sequence::Format::Formatter

  # Raw sequence output formatter class
  class Raw < Bio::Sequence::Format::FormatterBase

    # output raw sequence data
    def output
      "#{@sequence.seq}"
    end
  end #class Raw

end #module Bio::Sequence::Format::Formatter




More information about the bioruby-cvs mailing list