def isSyncronized(self):
        NO_SYNC = 1
        UNDER_DATE = 2
...

Python nested if blocks

by marcosvanetta, July 25, 2010 01:28, 3 refactorings, tagged with python, method, metaprogramming

I wanna know if anyone can ...

55502f40dc8b7c769880b10874abc9d0 Talk
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