File: segment_ends_path.rb

package info (click to toggle)
ruby-rgfa 1.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 824 kB
  • sloc: ruby: 5,649; makefile: 9
file content (9 lines) | stat: -rw-r--r-- 292 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
# An array containing {RGFA::SegmentEnd} elements, which defines a path
# in the graph
class RGFA::SegmentEndsPath < Array
  # Create a reverse direction path
  # @return [RGFA::SegmentEndsPath]
  def reverse
    super.map {|segment_end| segment_end.to_segment_end.invert_end_type}
  end
end