Ruby 2.7 adds shorthand operator for Object#method
Ruby 2.7 adds experimental shorthand operator for Object#method. This allows method object access using :, like File.:basename which is similar to File.method(:basename)
Read more about it here: http://blog.saeloun.com/2019/02/26/ruby-2-7-method-shorthand.html
Post a comment