Ruby 4.0 リファレンスマニュアル

instance method Integer#+

self + other -> NumericRuby 2.4.0 から[permalink][rdoc][edit]

selfother を足した値(=和)を返します。

Integer オブジェクトを左項とする算術演算子 + はこのメソッドの呼び出しになります。

[PARAM] other:
self に加算する数値
p 3 + 4 # => 7