class RailsBetterFilters::WeightedTopologicalSort::Edge
Attributes
from[R]
to[R]
Public Class Methods
new(from, to)
click to toggle source
# File lib/rails-better-filters/weighted_topological_sort.rb, line 82 def initialize(from, to) @from = from @to = to end
Public Instance Methods
from?(node)
click to toggle source
# File lib/rails-better-filters/weighted_topological_sort.rb, line 91 def from?(node) @from == node.name end
to?(node)
click to toggle source
# File lib/rails-better-filters/weighted_topological_sort.rb, line 87 def to?(node) @to == node.name end