module DemCurves::BaseConstraint
Public Instance Methods
handle_master(master, orig_src, params)
click to toggle source
# File lib/core/constraint.rb, line 14 def handle_master(master, orig_src, params) # This has to be implemented by the class end
handle_slave(slave, orig_src, params)
click to toggle source
# File lib/core/constraint.rb, line 18 def handle_slave(slave, orig_src, params) # This has to be implemented by the class end
notify(src, orig_src, params)
click to toggle source
# File lib/core/constraint.rb, line 6 def notify(src, orig_src, params) if src == @master_point handle_master src, orig_src, params elsif @slave_points.include? src handle_slave src, orig_src, params end end