Created
November 25, 2012 04:39
-
-
Save rauchy/4142419 to your computer and use it in GitHub Desktop.
Revisions
-
Omer Lachish-Rauchwerger revised this gist
Nov 25, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ a = 1 Foo = Class.new do # a == 1 here b = 2 define_method(:bar) do -
Omer Lachish-Rauchwerger revised this gist
Nov 25, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,9 +10,9 @@ def bar end def baz # a, b & c are undefined here d = 4 end # a, c & d are undefined here end -
Omer Lachish-Rauchwerger revised this gist
Nov 25, 2012 . 1 changed file with 20 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ a = 1 Foo = Class.new do # a is 1 here b = 2 define_method(:bar) do # a == 1 here, b == 2 here c = 3 end define_method(:baz) do # a == 1 here, b == 2 here # c is undefined here d = 4 end # a == 1 here, b == 2 here # c & d are undefined here end -
Omer Lachish-Rauchwerger revised this gist
Nov 25, 2012 . 1 changed file with 18 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ a = 1 class Foo # a is undefined here b = 2 def bar # a & b are undefined here c = 3 end def baz # c is undefined here d = 4 end # c & d are undefined here end -
Omer Lachish-Rauchwerger created this gist
Nov 25, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ class Foo def initialize @hello = "world" end def bar puts @hello end end