新版本的变更 / Ruby 2.6

# *** before: ***
result_old = 5.yield_self { |v| v * 2 }   # yield_self, added in 2.5, is verbose

# *** in version 2.6: ***
result = 5.then { |v| v * 2 }              # then is a short alias for yield_self

puts result