| Class | Bio::RestrictionEnzyme::Range::SequenceRange::Fragments |
| In: |
lib/bio/util/restriction_enzyme/range/sequence_range/fragments.rb
|
| Parent: | Array |
| DisplayFragment | = | Struct.new(:primary, :complement) |
| complement | [RW] | |
| primary | [RW] |
# File lib/bio/util/restriction_enzyme/range/sequence_range/fragments.rb, line 23
23: def initialize(primary, complement)
24: @primary = primary
25: @complement = complement
26: end
# File lib/bio/util/restriction_enzyme/range/sequence_range/fragments.rb, line 30
30: def for_display(p_str=nil, c_str=nil)
31: p_str ||= @primary
32: c_str ||= @complement
33: pretty_fragments = []
34: self.each { |fragment| pretty_fragments << fragment.for_display(p_str, c_str) }
35: pretty_fragments
36: end