1
2
3
4
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
1
2
3
4
require 'erb'

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

Ruby Given a hash of variables, ...

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

This works. Now, is there a...

8f93a872e399bc1353cc8d4e791d5401 Talk