Skip to content

Instantly share code, notes, and snippets.

@ryan-allen
Created September 2, 2010 06:13

Revisions

  1. ryan-allen created this gist Sep 2, 2010.
    10 changes: 10 additions & 0 deletions first-big-wtf-in-months.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    a = lambda {
    b.call()
    }

    b = lambda {
    :IMA_B_LOL
    }

    b.call() # raises nothing
    a.call() # raises NameError: undefined local variable or method ‘b’ for main:Object ... WTF!