class Bio::RestrictionEnzyme::Range::SequenceRange::Fragments

Constants

DisplayFragment

Attributes

complement[RW]
primary[RW]

Public Class Methods

new(primary, complement) click to toggle source
# File lib/bio/util/restriction_enzyme/range/sequence_range/fragments.rb, line 22
def initialize(primary, complement)
  @primary = primary
  @complement = complement
end

Public Instance Methods

for_display(p_str=nil, c_str=nil) click to toggle source
# File lib/bio/util/restriction_enzyme/range/sequence_range/fragments.rb, line 29
def for_display(p_str=nil, c_str=nil)
  p_str ||= @primary
  c_str ||= @complement
  pretty_fragments = []
  self.each { |fragment| pretty_fragments << fragment.for_display(p_str, c_str) }
  pretty_fragments
end