Created
May 16, 2012 01:02
-
-
Save mynameisrufus/2706464 to your computer and use it in GitHub Desktop.
After months of JS
This file contains 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 characters
def foo | |
Foo.new do |f| | |
f.thing &bar | |
end | |
end | |
def bar | |
proc do |thing| | |
thing.title = "woop" | |
thing.time = Time.now | |
end | |
end |
This file contains 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 characters
def foo; Foo.new { |f| f.thing &bar } end | |
def bar; proc { |thing| thing.title = "woop"; thing.time = Time.now } end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment