lib/measures/tbd/resources/model.rb
##
# Gets shared edges with another wire
#
# @return [Array] Returns array of shared edges
Gets shared edges with another wire
Gets shared edges with another wire
def shared_edges(other)
      return nil unless other.is_a?(Wire)
      result = []
      @directed_edges.each do |de|
        other.directed_edges.each do |other_de|
          result << de.edge if de.edge.id == other_de.edge.id
        end
      end
      return result
    end
def shared_edges ( other ) return nil unless other . is_a? ( Wire ) result = [ ] @directed_edges . each do | de | other . directed_edges . each do | other_de | result << de . edge if de . edge . id == other_de . edge . id end end return result end
Gets shared edges with another wire
Gets shared edges with another wire
Returns array of shared edges
Returns array of shared edges
Array
other