Refinements

suggest change

Versions

The notes below were written for Ruby 2.0–2.3. Refinements are still in the language.

Remarks

Refinements are lexical. using applies from that line through the end of the file, class, or module body, including methods defined in that scope. Calling such a method from outside that scope does not activate the refinement.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents