Last active
January 2, 2018 13:30
-
-
Save pointcom/eab8fa2a04e0e5757317abe2abe657f4 to your computer and use it in GitHub Desktop.
Ruby 2.5
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 characters
{foo: "bar", baz: "qux", quux: "corge", grault: "garply"}.slice(:foo, :grault) | |
=> {:foo=>"bar", :grault=>"garply"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment