るりまサーチ

最速Rubyリファレンスマニュアル検索!
632件ヒット [1-100件を表示] (0.123秒)
トップページ > クエリ:i[x] > クエリ:&[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. csv to_i

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

IPAddr#&(ipaddr) -> IPAddr (21301.0)

他の IPAddr オブジェクトとのビットごとの論理積により、 新しい IPAddr オブジェクトを生成します。

...他の IPAddr オブジェクトとのビットごとの論理積により、
新しい IPAddr オブジェクトを生成します。

@param ipaddr 他の IPAddr オブジェクト。
また、数値や文字列も受け付けます。...

Bignum#&(other) -> Fixnum | Bignum (21213.0)

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

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

@param other 数値

1 & 1 #=> 1
2 & 3 #=> 2...

Fixnum#&(other) -> Fixnum | Bignum (21213.0)

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

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

@param other 数値

1 & 1 #=> 1
2 & 3 #=> 2...

Integer#&(other) -> Integer (21213.0)

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

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

@param other 数値

//emlist[][ruby]{
1 & 1 # => 1
2 & 3 # => 2
//}...

NilClass#&(other) -> false (21125.0)

常に false を返します。

...常に false を返します。

@param other 論理積を行なう式です

//emlist[例][ruby]{
nil & true # => false
nil & false # => false
nil & nil # => false
nil & "a" # => false
//}...

絞り込み条件を変える

Process::Status#&(other) -> Integer (18239.0)

self.to_i & other と同じです。 このメソッドは後方互換性のためにあります。

...self.to_i & other と同じです。
このメソッドは後方互換性のためにあります。

@param other 自身との & 演算をしたい整数を指定します。...

IRB::ExtendCommandBundle#irb_require(*opts, &b) -> bool (15302.0)

現在の irb に関する IRB::Context に対して irb_require コマンドを 実行します。

...現在の irb に関する IRB::Context に対して irb_require コマンドを
実行します。

@see IRB::ExtendCommand::Require#execute...

IRB::ExtendCommandBundle#irb_load(*opts, &b) -> nil (9202.0)

現在の irb に関する IRB::Context に対して irb_load コマンドを実行 します。

...現在の irb に関する IRB::Context に対して irb_load コマンドを実行
します。

@see IRB::ExtendCommand::Load#execute...

Pathname#each_line(*args) {|line| ... } -> nil (6217.0)

IO.foreach(self.to_s, *args, &block) と同じです。

...IO.foreach(self.to_s, *args, &block) と同じです。

//emlist[例][ruby]{
require "pathname"

I
O.write("testfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line
# => #<Enumerator: IO:foreach("testfile")>
//}

//emlist[例 ブロックを指定][ruby]{
require "pathname"

I
O.write("tes...
...tfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line {|f| p f }

# => "line1\n"
# => "line2,\n"
# => "line3\n"
//}

//emlist[例 limit を指定][ruby]{
require "pathname"

I
O.write("testfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line(4) {|f| p f }

# => "line"
# => "1\n"...
...# => "line"
# => "2,\n"
# => "line"
# => "3\n"
//}

//emlist[例 sep を指定][ruby]{
require "pathname"

I
O.write("testfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line(",") {|f| p f }

# => "line1\nline2,"
# => "\nline3\n"
//}

@see IO.foreach...

Pathname#opendir -> Dir (6217.0)

Dir.open(self.to_s, &block) と同じです。

...Dir.open(self.to_s, &block) と同じです。


@see Dir.open...

絞り込み条件を変える

Pathname#opendir {|dir| ... } -> nil (6217.0)

Dir.open(self.to_s, &block) と同じです。

...Dir.open(self.to_s, &block) と同じです。


@see Dir.open...
<< 1 2 3 ... > >>