種類
- 特異メソッド (187)
- モジュール関数 (176)
- インスタンスメソッド (151)
- クラス (55)
- 定数 (11)
クラス
- Complex (11)
- File (11)
-
File
:: Stat (11) - Float (30)
- IO (99)
- Numeric (44)
-
Process
:: Status (11) - Regexp (22)
-
RubyVM
:: InstructionSequence (55) - StopIteration (11)
- String (22)
- Symbol (11)
キーワード
- EKEYEXPIRED (11)
- EPIPE (11)
- ESPIPE (11)
- ESTRPIPE (11)
- StopIteration (11)
- angle (11)
- arg (11)
- asin (11)
- capitalize (22)
- capitalize! (11)
- compile (22)
-
compile
_ file (11) -
compile
_ option (11) -
compile
_ option= (11) - detach (11)
- getpgid (11)
- getsid (11)
- hash (11)
- kill (11)
- new (22)
- phase (11)
- pid (33)
- pipe (88)
- pipe? (33)
- polar (22)
- ppid (11)
- printf (22)
- result (11)
- round (19)
- setpgid (11)
- sin (11)
- wait (11)
- wait2 (11)
- waitpid (11)
- waitpid2 (11)
検索結果
先頭5件
- Math
:: PI -> Float - RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence - RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence - Regexp
. compile(string , option = nil , code = nil) -> Regexp - File
. pipe?(path) -> bool
-
Math
:: PI -> Float (32209.0) -
円周率
...円周率
//emlist[例][ruby]{
p Math::PI
# => 3.141592654
//}... -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (23502.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param file......tions コンパイル時のオプションを true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
# /tmp/hello.rb
puts "Hello, world!"
# i......rb
RubyVM::InstructionSequence.compile_file("/tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
@see RubyVM::InstructionSequence.compile... -
RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (20602.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定します。
@param path 引数 file の絶対パスファイル名を......。
@param line 引数 source の 1 行目の行番号を指定します。
@param options コンパイル時のオプションを true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参......照
してください。
RubyVM::InstructionSequence.compile("a = 1 + 2")
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
@see RubyVM::InstructionSequence.compile_file... -
Regexp
. compile(string , option = nil , code = nil) -> Regexp (20402.0) -
文字列 string をコンパイルして正規表現オブジェクトを生成して返します。
...文字列 string をコンパイルして正規表現オブジェクトを生成して返します。
第一引数が正規表現であれば第一引数を複製して返します。第二、第三引数は警告の上無視されます。
@param string 正規表現を文字列として与えま......@param option Regexp::IGNORECASE, Regexp::MULTILINE,
Regexp::EXTENDED
の論理和を指定します。
Integer 以外であれば真偽値の指定として見なされ
、真(nil, false 以外)であれば
Regexp::IGNORECASE......ングは ASCII-8BIT になります。
それ以外の指定は警告を出力します。
@raise RegexpError 正規表現のコンパイルに失敗した場合発生します。
//emlist[例][ruby]{
str = "This is Regexp"
t1 = Regexp.compile("this is regexp", Regexp::IGNORECASE)
t1... -
File
. pipe?(path) -> bool (20202.0) -
FileTest.#pipe? と同じです。
...FileTest.#pipe? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
File
:: Stat # pipe? -> bool (20202.0) -
無名パイプおよび名前つきパイプ(FIFO)の時に真を返します。
...無名パイプおよび名前つきパイプ(FIFO)の時に真を返します。
//emlist[][ruby]{
system("mkfifo /tmp/pipetest")
p File::Stat.new("/tmp/pipetest").pipe? #=> true
//}... -
FileTest
. # pipe?(file) -> bool (20202.0) -
指定したファイルがパイプである時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...す。
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@raise IOError 指定された IO オブジェクト file が既に close されていた場合に発生します。
例:
r, w = IO.pipe
FileTest.pipe?(r) # => true
FileTest.pipe?(w) # => true... -
IO
# pid -> Integer | nil (20202.0) -
自身が IO.popen で作られたIOポートなら、子プロセスのプロセス ID を 返します。それ以外は nil を返します。
... IO.popen で作られたIOポートなら、子プロセスのプロセス ID を
返します。それ以外は nil を返します。
@raise IOError 既に close されている場合に発生します。
//emlist[例][ruby]{
IO.popen("-") do |pipe|
if pipe
$stderr.puts "In parent, child......pid is #{pipe.pid}" # => In parent, child pid is 16013
else
$stderr.puts "In child, pid is #{$$}" # => In child, pid is 16013
end
end
//}... -
IO
. pipe -> [IO] (20202.0) -
pipe(2) を実行して、相互につながった2つの IO オブジェクトを要素とする配列を返します。
...
pipe(2) を実行して、相互につながった2つの
IO オブジェクトを要素とする配列を返します。
戻り値の配列は最初の要素が読み込み側で、次の要素が書き込み側です。
ブロックが渡された場合は、そのブロックに2つの IO オ......ソッドの返り値となります。
ブロック終了時に IO オブジェクトがもし close されていないならば
close します(close されていてるオブジェクトはそのままです)。
得られる2つの IO オブジェクトのエンコーディングを引数で指......グを Encoding オブジェクトで指定します。
@param int_enc 読み込み側の内部エンコーディングを Encoding オブジェクトで指定します。
@param opts エンコーディングなどを設定するキーワード引数(see IO.new)
@raise Errno::EXXX IO オブジェ... -
IO
. pipe {|read _ io , write _ io| . . . } -> object (20202.0) -
pipe(2) を実行して、相互につながった2つの IO オブジェクトを要素とする配列を返します。
...
pipe(2) を実行して、相互につながった2つの
IO オブジェクトを要素とする配列を返します。
戻り値の配列は最初の要素が読み込み側で、次の要素が書き込み側です。
ブロックが渡された場合は、そのブロックに2つの IO オ......ソッドの返り値となります。
ブロック終了時に IO オブジェクトがもし close されていないならば
close します(close されていてるオブジェクトはそのままです)。
得られる2つの IO オブジェクトのエンコーディングを引数で指......グを Encoding オブジェクトで指定します。
@param int_enc 読み込み側の内部エンコーディングを Encoding オブジェクトで指定します。
@param opts エンコーディングなどを設定するキーワード引数(see IO.new)
@raise Errno::EXXX IO オブジェ...