Class: Bio::AssemblyGraphAlgorithms::TrailSet
- Inherits:
-
Object
- Object
- Bio::AssemblyGraphAlgorithms::TrailSet
- Includes:
- Enumerable
- Defined in:
- lib/assembly/acyclic_connection_finder.rb
Overview
Represents a set of trails, and whether or not circularity has been detected, and whether too many paths have been detected.
Instance Attribute Summary collapse
-
#circular_paths_detected ⇒ Object
Returns the value of attribute circular_paths_detected.
-
#max_path_limit_exceeded ⇒ Object
Returns the value of attribute max_path_limit_exceeded.
-
#trails ⇒ Object
Returns the value of attribute trails.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize ⇒ TrailSet
constructor
A new instance of TrailSet.
Constructor Details
#initialize ⇒ TrailSet
Returns a new instance of TrailSet.
15 16 17 18 |
# File 'lib/assembly/acyclic_connection_finder.rb', line 15 def initialize @circular_paths_detected = false @max_path_limit_exceeded = false end |
Instance Attribute Details
#circular_paths_detected ⇒ Object
Returns the value of attribute circular_paths_detected.
11 12 13 |
# File 'lib/assembly/acyclic_connection_finder.rb', line 11 def circular_paths_detected @circular_paths_detected end |
#max_path_limit_exceeded ⇒ Object
Returns the value of attribute max_path_limit_exceeded.
12 13 14 |
# File 'lib/assembly/acyclic_connection_finder.rb', line 12 def max_path_limit_exceeded @max_path_limit_exceeded end |
#trails ⇒ Object
Returns the value of attribute trails.
10 11 12 |
# File 'lib/assembly/acyclic_connection_finder.rb', line 10 def trails @trails end |
Instance Method Details
#each ⇒ Object
20 21 22 23 24 |
# File 'lib/assembly/acyclic_connection_finder.rb', line 20 def each unless @trails.nil? @trails.each{|t| yield t} end end |