Created
August 13, 2010 09:04
-
-
Save bussiere/522579 to your computer and use it in GitHub Desktop.
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
#Made by the guys at ruby apero | |
#instancing default parameter and passing specific parameter | |
def toto(params={}) | |
p default.merge(params) | |
end | |
def default | |
{:titi => 1, :tata =>2} | |
end | |
toto({:tata=>3}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment