Skip to content

Ruby: add keywords used for refinements to the mixin methods list

This adds two keywords (refine and using) to the list of highlighted mixin methods. Refinements is a feature introduced in Ruby 2.0 that basically allows the developer to extend existing classes without affecting the global scope.

I added it to the list of mixin methods as it seems to make the most sense there; while extend is a method of Object, both include and prepend are methods of Module -- just like refine and using :-)

See also https://docs.ruby-lang.org/en/3.1/syntax/refinements_rdoc.html if you're curious about refinements ;-)

Merge request reports

Loading