object.constraints.each do |c| p = object.particles[c.index] p.component_set(c.component,c.value) if p.component_value(c.component).send(c.dir, c.value) ...
object.constraints.each do |c| p = object.particles[c.index] if c.component == :x ...
Ruby ruby metaprogramming
So here here my ugly code. ...
Thanks but Daniel solved my...