This blog is part of our Ruby 2.8 series.

Ruby 2.8 adds endless method definition. It enables us to create method definitions without the need of end keyword. It is marked as an experimental feature.

# endless method definition
>> def raise_to_power(number, power) = number ** power

>> raise_to_power(2, 5)

=> 32

The discussion around it can be found here. Check out the pull request for more details on this.