seattlerb / ruby_parser

ruby_parser is a ruby parser written in pure ruby. It outputs s-expressions which can be manipulated and converted back to ruby via the ruby2ruby gem.
http://www.zenspider.com/projects/ruby_parser.html
476 stars 100 forks source link

Parenthesisless method calls in endless method definitions (Ruby-3.1 support) #328

Closed ojab closed 2 years ago

ojab commented 2 years ago

https://rubyreferences.github.io/rubychanges/3.1.html#inside-endless-method-definitions-method-calls-without-parenthesis-are-allowed

def log(msg) = puts "#{Time.now}: #{msg}"

should be allowed

zenspider commented 2 years ago

This has been addressed in the latest release.