るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.028秒)
トップページ > バージョン:2.3.0[x] > クエリ:io[x] > クエリ:bump[x]

別のキーワード

  1. io popen
  2. io pipe
  3. io each
  4. io each_line
  5. io readlines

ライブラリ

クラス

検索結果

Gem::Version#bump -> Gem::Version (63658.0)

最後の一桁を切り上げた新しい Gem::Version のインスタンスを返します。

最後の一桁を切り上げた新しい Gem::Version のインスタンスを返します。

ただし、英字のプレリリースの部分は、無視されます。

//emlist[][ruby]{
p Gem::Version.new('5.3.1').bump # => #<Gem::Version "5.4">
p Gem::Version.new('5.3.1.a.1').bump # => #<Gem::Version "5.4">
p Gem::Version.new('5.3.1.3.1').bump # => #<Gem::Version "5.3.1.4">
//}