るりまサーチ (Ruby 2.2.0)

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

別のキーワード

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

ライブラリ

クラス

検索結果

Gem::Version#bump -> Gem::Version (72958.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">
//}