class Manacle::Constraint::Actuator::Nested
Public Class Methods
new(nested, constraint)
click to toggle source
# File lib/manacle/constraint/actuator/nested.rb, line 10 def initialize(nested, constraint) @nested = nested @constraint = constraint end
Public Instance Methods
constrain()
click to toggle source
# File lib/manacle/constraint/actuator/nested.rb, line 32 def constrain @constrained ||= build_constraint end
levels()
click to toggle source
# File lib/manacle/constraint/actuator/nested.rb, line 28 def levels [self.class] + @nested.levels end
proxy()
click to toggle source
# File lib/manacle/constraint/actuator/nested.rb, line 24 def proxy @nested.proxy end
reconstrain(obj)
click to toggle source
# File lib/manacle/constraint/actuator/nested.rb, line 19 def reconstrain(obj) res = @nested.reconstrain(obj) self.class.new(res, @constraint) end
unconstrain()
click to toggle source
# File lib/manacle/constraint/actuator/nested.rb, line 15 def unconstrain @nested.unconstrain end
Private Instance Methods
build_constraint()
click to toggle source
# File lib/manacle/constraint/actuator/nested.rb, line 38 def build_constraint res = @nested.constrain @constraint.base_constrain(res) end