Skip to content

Instantly share code, notes, and snippets.

@pinglamb
Created September 28, 2017 07:13
Show Gist options
  • Select an option

  • Save pinglamb/a3e98ab795e7c91a99ba48c3f437ba01 to your computer and use it in GitHub Desktop.

Select an option

Save pinglamb/a3e98ab795e7c91a99ba48c3f437ba01 to your computer and use it in GitHub Desktop.

Revisions

  1. pinglamb created this gist Sep 28, 2017.
    6 changes: 6 additions & 0 deletions splats.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    def foo(bar, a: 1, b: 2)
    puts a.inspect
    end

    args = { a: 2 }
    foo(true, args)