1
2
3
4
module Every
  @interval, @stopped = 0.0, true
  @numwords = {"one"=>1, "two"=>2, "three"=>3, "four"=>4, "five"=>5, "six"=>6, "seven"=>7, "eight"=>8, "nine"=>9,
...

Ruby Every repeat module

by Ryguy, June 13, 2008 18:38, 1 refactoring, tagged with ruby, loop

Loop a block of code every ...

Ba665f86f90a1982af7b9c857418fcdb Talk
1
2
3
4
module Keys_to_Meths
  def method_missing(meth, *args)
    if meth.to_s[-1] == 61 #if last char is an equal sign
...

Ruby Hash.keys_to_attr

by Ryguy, June 12, 2008 04:05, 3 refactorings, tagged with hash, methods

/no comment/

>_>

Ba665f86f90a1982af7b9c857418fcdb Talk