Skip to content

Instantly share code, notes, and snippets.

@mynameisrufus
Created May 16, 2012 01:02

Revisions

  1. mynameisrufus revised this gist May 16, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions semicolons.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    def foo; Foo.new { |f| f.thing &bar } end
    def bar; proc { |thing| thing.title = "woop"; thing.time = Time.now } end
  2. mynameisrufus created this gist May 16, 2012.
    12 changes: 12 additions & 0 deletions js.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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