Class: Bio::RestrictionEnzyme::Range::CutRanges

Inherits:
Array
  • Object
show all
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

Returns:

  • (Boolean)


22
# File 'lib/bio/util/restriction_enzyme/range/cut_ranges.rb', line 22

def include?(i); self.collect{|a| a.include?(i)}.include?(true); end

#maxObject



21
# File 'lib/bio/util/restriction_enzyme/range/cut_ranges.rb', line 21

def max; self.collect{|a| a.max}.flatten.sort.last; end

#max_verticalObject



28
29
30
# File 'lib/bio/util/restriction_enzyme/range/cut_ranges.rb', line 28

def max_vertical
  vertical_min_max_helper( :max )
end

#minObject



20
# File 'lib/bio/util/restriction_enzyme/range/cut_ranges.rb', line 20

def min; self.collect{|a| a.min}.flatten.sort.first; end

#min_verticalObject



24
25
26
# File 'lib/bio/util/restriction_enzyme/range/cut_ranges.rb', line 24

def min_vertical
  vertical_min_max_helper( :min )
end