class TreeBranch::Comparator
This is the base class for all plug in comparators. Derive subclasses from this class and declare them when calling ::TreeBranch::Node#process or ::TreeBranch#process.
Attributes
context[R]
data[R]
Public Class Methods
new(data: {}, context: {})
click to toggle source
# File lib/tree_branch/comparator.rb, line 16 def initialize(data: {}, context: {}) @data = data || {} @context = context || {} end
Public Instance Methods
valid?()
click to toggle source
# File lib/tree_branch/comparator.rb, line 21 def valid? false end