Class: Bio::RestrictionEnzyme::Range::CutRanges
- Inherits:
-
Array
- Object
- Array
- Bio::RestrictionEnzyme::Range::CutRanges
- Defined in:
- lib/bio/util/restriction_enzyme/range/cut_ranges.rb
Overview
Container for many CutRange objects or CutRange child objects. Inherits from array.
Instance Method Summary collapse
Instance Method Details
#include?(i) ⇒ Boolean
14 |
# File 'lib/bio/util/restriction_enzyme/range/cut_ranges.rb', line 14 def include?(i); self.collect{|a| a.include?(i)}.include?(true); end |
#max ⇒ Object
13 |
# File 'lib/bio/util/restriction_enzyme/range/cut_ranges.rb', line 13 def max; self.collect{|a| a.max}.flatten.sort.last; end |
#max_vertical ⇒ Object
20 21 22 |
# File 'lib/bio/util/restriction_enzyme/range/cut_ranges.rb', line 20 def max_vertical vertical_min_max_helper( :max ) end |
#min ⇒ Object
12 |
# File 'lib/bio/util/restriction_enzyme/range/cut_ranges.rb', line 12 def min; self.collect{|a| a.min}.flatten.sort.first; end |
#min_vertical ⇒ Object
16 17 18 |
# File 'lib/bio/util/restriction_enzyme/range/cut_ranges.rb', line 16 def min_vertical vertical_min_max_helper( :min ) end |