[GEEKY] Ruby 2.0 Refinements in Practice

I went to RubyConf and heard a detailed presentation on a new possible feature of possible Ruby 2.0 called ‘Refinements’. I have to admit that I didn’t fully grasp how the feature really would be used. Here’s a nice and quite techical article about it: Ruby 2.0 Refinements in Practice from Katz Got Your Tongue?:

"The first thing you need to understand is that the purpose of refinements in Ruby 2.0 is to make monkey-patching safer. Specifically, the goal is to make it possible to extend core classes, but to limit the effect of those extensions to a particular area of code."

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s