Last active
June 21, 2016 20:40
-
-
Save deviation/cd9eea84f16c38537ec9443b0a221ed4 to your computer and use it in GitHub Desktop.
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(bar: 'barDefault', baz: 'bazDefault', fizz: 'fizzDefault') | |
puts "bar: " + bar | |
puts "baz: " + baz | |
puts "fizz: " + fizz | |
end | |
myData1 = { "bar" => "bar data", "baz" => "baz data"} | |
#For myData1: would like to know if there's shorthand for: | |
foo(bar: myData['bar'], baz: myData['baz']) | |
myData2 = {} | |
#for myData2: would like to call: | |
foo() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment