object.constraints.each do |c|
  p = object.particles[c.index]
  if c.component == :x
...

Ruby ruby metaprogramming

by micktaiwan, January 06, 2009 00:30, 7 refactorings, tagged with ruby, metaprogramming

So here here my ugly code. ...

2f6686bd2c6bb633a1cbf7b5a73c8491 Talk
require 'erb'

# GOAL: render the template with the following vars
...

Ruby Given a hash of variables, ...

by mislav, April 12, 2008 15:12, 6 refactorings, tagged with hash, metaprogramming, erb, singleton, metaclass, render

This works. Now, is there a...

8f93a872e399bc1353cc8d4e791d5401 Talk