RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in