Quantcast
Channel: Kansas City on Rails » defined
Browsing all 2 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Ruby’s defined? Operator

Even if you’ve used Ruby’s defined? operator on a daily basis, you may not understand how it works. I sure didn’t until recently, but it’s worth a look. A refresher in memoization etiquette If you’re...

View Article



Image may be NSFW.
Clik here to view.

Ruby’s Splat Operator

Ruby is a dynamic language. One of the things it lets you do is define methods with an unknown (or variable) number of arguments. It does this using the splat operator. But the splat operator can...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images