Refinements
suggest changeVersions
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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents