るりまサーチ

最速Rubyリファレンスマニュアル検索!
690件ヒット [101-200件を表示] (0.430秒)

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

クラス

モジュール

キーワード

検索結果

<< < 1 2 3 4 ... > >>

IO.pipe(ext_enc) -> [IO] (14102.0)

pipe(2) を実行して、相互につながった2つの IO オブジェクトを要素とする配列を返します。

...
pi
pe(2) を実行して、相互につながった2つの
IO オブジェクトを要素とする配列を返します。

戻り値の配列は最初の要素が読み込み側で、次の要素が書き込み側です。

ブロックが渡された場合は、そのブロックに2つの IO オ...
...定するキーワード引数(see IO.new)

@raise Errno::EXXX IO オブジェクトの作成に失敗した場合に発生します。

r, w = IO.pipe
p [r, w] # => [#<IO:0x401b90f8>, #<IO:0x401b7718>]
Thread.new do
w.puts "foo"
w.close
end
p r.gets # => "foo\...

IO.pipe(ext_enc) {|read_io, write_io| ... } -> object (14102.0)

pipe(2) を実行して、相互につながった2つの IO オブジェクトを要素とする配列を返します。

...
pi
pe(2) を実行して、相互につながった2つの
IO オブジェクトを要素とする配列を返します。

戻り値の配列は最初の要素が読み込み側で、次の要素が書き込み側です。

ブロックが渡された場合は、そのブロックに2つの IO オ...
...定するキーワード引数(see IO.new)

@raise Errno::EXXX IO オブジェクトの作成に失敗した場合に発生します。

r, w = IO.pipe
p [r, w] # => [#<IO:0x401b90f8>, #<IO:0x401b7718>]
Thread.new do
w.puts "foo"
w.close
end
p r.gets # => "foo\...

IO.pipe(ext_enc, int_enc, **opts) -> [IO] (14102.0)

pipe(2) を実行して、相互につながった2つの IO オブジェクトを要素とする配列を返します。

...
pi
pe(2) を実行して、相互につながった2つの
IO オブジェクトを要素とする配列を返します。

戻り値の配列は最初の要素が読み込み側で、次の要素が書き込み側です。

ブロックが渡された場合は、そのブロックに2つの IO オ...
...定するキーワード引数(see IO.new)

@raise Errno::EXXX IO オブジェクトの作成に失敗した場合に発生します。

r, w = IO.pipe
p [r, w] # => [#<IO:0x401b90f8>, #<IO:0x401b7718>]
Thread.new do
w.puts "foo"
w.close
end
p r.gets # => "foo\...

IO.pipe(ext_enc, int_enc, **opts) {|read_io, write_io| ... } -> object (14102.0)

pipe(2) を実行して、相互につながった2つの IO オブジェクトを要素とする配列を返します。

...
pi
pe(2) を実行して、相互につながった2つの
IO オブジェクトを要素とする配列を返します。

戻り値の配列は最初の要素が読み込み側で、次の要素が書き込み側です。

ブロックが渡された場合は、そのブロックに2つの IO オ...
...定するキーワード引数(see IO.new)

@raise Errno::EXXX IO オブジェクトの作成に失敗した場合に発生します。

r, w = IO.pipe
p [r, w] # => [#<IO:0x401b90f8>, #<IO:0x401b7718>]
Thread.new do
w.puts "foo"
w.close
end
p r.gets # => "foo\...

Process.#pid -> Integer (14102.0)

カレントプロセスのプロセス ID を返します。変数 $$ の値と同じです。

...カレントプロセスのプロセス ID を返します。変数 $$
の値と同じです。

@see getpid(2)...

絞り込み条件を変える

Process.#ppid -> Integer (14102.0)

親プロセスのプロセス ID を返します。UNIX では実際の親プロセスが終 了した後は ppid は 1 (initの pid)になります。

...親プロセスのプロセス ID を返します。UNIX では実際の親プロセスが終
了した後は ppid は 1 (initの pid)になります。

@see getppid(2)...

Process::Status#pid -> Integer (14102.0)

終了したプロセスのプロセス ID を返します。

終了したプロセスのプロセス ID を返します。

Regexp.compile(string, option = nil, code = nil) -> Regexp (14102.0)

文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

...失敗した場合発生します。

//emlist[例][ruby]{
str = "This is Regexp"
t1 = Regexp.compile("this is regexp", Regexp::IGNORECASE)
t1.match(str)
p $~ # => "This is Regexp"

t2 = Regexp.compile('
this # ここは使用されない
\ is
\ regexp # ここも使用されない
', Re...
...gexp::EXTENDED | Regexp::IGNORECASE)
t2.match(str)
p Regexp.last_match # => "This is Regexp"

str = "ふるいけや\nかわずとびこむ\nみずのおと"
t2 = Regexp.compile("ふる.*?と", Regexp::MULTILINE)
p t2.match(str)[0] # => "ふるいけや\nかわずと"
//}...

RubyVM::InstructionSequence.compile(source, file = nil, path = nil, line = 1, options = nil) -> RubyVM::InstructionSequence (14102.0)

引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。

...かで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。

RubyVM::InstructionSequence.compile("a = 1 + 2")
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>

@see RubyVM::InstructionSequence.compile_file...

RubyVM::InstructionSequence.compile_file(file, options = nil) -> RubyVM::InstructionSequence (14102.0)

引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。

...ードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。

RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。

@param file ファイル名を文字列で指定しま...
...yVM::InstructionSequence.compile_option= を参照
してください。

# /tmp/hello.rb
puts "Hello, world!"

# irb
RubyVM::InstructionSequence.compile_file("/tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>

@see RubyVM::InstructionSequence.compile...

絞り込み条件を変える

<< < 1 2 3 4 ... > >>