class Bio::Sequence::Format::FormatterBase
Formatter base class. Any formatter class should inherit this class.
Public Class Methods
Source
# File lib/bio/sequence/format.rb 111 def initialize(sequence, options = {}) 112 @sequence = sequence 113 @options = options 114 end
creates a new formatter object for output
Source
# File lib/bio/sequence/format.rb 91 def self.output(sequence, options = {}) 92 self.new(sequence, options).output 93 end
Returns a formatterd string of the given sequence
Arguments:
- 
(required) sequence:
Bio::Sequenceobject - 
(optional) options: a Hash object
 
- Returns
 - 
String object
 
Public Instance Methods
Source
# File lib/bio/sequence/format.rb 106 def output 107 raise NotImplementedError, 'should be implemented in subclass' 108 end
generates output data
- Returns
 - 
String object