Formatter base class. Any formatter class should inherit this class.
creates a new formatter object for output
# File lib/bio/sequence/format.rb, line 110 def initialize(sequence, options = {}) @sequence = sequence @options = options end
Returns a formatterd string of the given sequence
Arguments:
(required) sequence: Bio::Sequence object
(optional) options: a Hash object
Returns |
String object |
# File lib/bio/sequence/format.rb, line 90 def self.output(sequence, options = {}) self.new(sequence, options).output end
generates output data
Returns |
String object |
# File lib/bio/sequence/format.rb, line 105 def output raise NotImplementedError, 'should be implemented in subclass' end
Generated with the Darkfish Rdoc Generator 2.