Monthly Archives: June 2010

Ruby Method Parameter Default Values – A Shortcut

Today was one of those moments where I thought to myself: “wouldn’t it be cool if I could”… and it turned out I could. In Ruby, you can give your method parameters default values: def my_method(a = 5) puts a … Continue reading 

Posted in ruby | Leave a comment