るりまサーチ

最速Rubyリファレンスマニュアル検索!
722件ヒット [701-722件を表示] (0.061秒)
トップページ > クエリ:Ruby[x] > 種類:インスタンスメソッド[x] > クエリ:@[x] > クエリ:ruby[x] > クラス:Integer[x]

別のキーワード

  1. rbconfig ruby
  2. fiddle ruby_free
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

ライブラリ

キーワード

検索結果

<< < ... 6 7 8 >>

Integer#times {|n| ... } -> self (20.0)

self 回だけ繰り返します。 self が正の整数でない場合は何もしません。

...れます。

//emlist[][ruby]{
3.times { puts "Hello, World!" } # Hello, World! と3行続いて表示される。
0.times { puts "Hello, World!" } # 何も表示されない。
5.times {|n| print n } # 01234 と表示される。
//}

@
see Integer#upto, Integer#downto, Numeric#step...

Integer#|(other) -> Integer (20.0)

ビット二項演算子。論理和を計算します。

...ビット二項演算子。論理和を計算します。

@
param other 数値

//emlist[][ruby]{
1 | 1 # => 1
2 | 3 # => 3
//}...
<< < ... 6 7 8 >>