種類
- インスタンスメソッド (453)
- クラス (419)
- 特異メソッド (386)
- モジュール関数 (120)
- 定数 (12)
クラス
-
Encoding
:: Converter (24) -
Encoding
:: InvalidByteSequenceError (84) -
Encoding
:: UndefinedConversionError (60) -
Errno
:: EXXX (24) - Exception (48)
- Fiber (18)
- FrozenError (20)
- Hash (36)
- IO (168)
- KeyError (44)
- LoadError (12)
- LocalJumpError (24)
- NameError (63)
- NoMethodError (40)
- Object (12)
- StopIteration (12)
- SyntaxError (3)
- SystemCallError (60)
- SystemExit (12)
- Thread (36)
- UncaughtThrowError (33)
モジュール
- Kernel (96)
- Math (24)
-
RubyVM
:: AbstractSyntaxTree (18)
キーワード
- === (12)
- ArgumentError (12)
- ClosedQueueError (10)
- CompatibilityError (12)
- ConverterNotFoundError (12)
- DomainError (12)
- EOFError (12)
- EncodingError (12)
- FiberError (12)
- FloatDomainError (12)
- FrozenError (8)
- IOError (12)
- IndexError (12)
- InvalidByteSequenceError (12)
- KeyError (12)
- LoadError (12)
- LocalJumpError (12)
- NOERROR (12)
- NameError (12)
- NoMatchingPatternError (6)
- NoMemoryError (12)
- NoMethodError (12)
- NotImplementedError (12)
- RangeError (12)
- RegexpError (12)
- RuntimeError (12)
-
SCRIPT
_ LINES _ _ (12) - ScriptError (12)
- SecurityError (12)
- StandardError (12)
- SyntaxError (12)
- SystemCallError (12)
- SystemStackError (12)
- ThreadError (12)
- TypeError (12)
- UncaughtThrowError (11)
- UndefinedConversionError (12)
- ZeroDivisionError (12)
- abort (24)
- args (12)
-
destination
_ encoding (24) -
destination
_ encoding _ name (24) - erf (12)
- erfc (12)
- errno (12)
-
error
_ bytes (12) -
error
_ char (12) - exception (36)
-
exit
_ value (12) - fail (36)
- fetch (36)
-
incomplete
_ input? (12) - key (8)
-
last
_ error (12) -
local
_ variables (10) - name (12)
- new (164)
- of (6)
- parse (6)
-
parse
_ file (6) - path (15)
-
pending
_ interrupt? (24) - popen (168)
-
primitive
_ errinfo (12) -
private
_ call? (9) - raise (66)
-
readagain
_ bytes (12) - reason (12)
- receiver (24)
- result (12)
-
source
_ encoding (24) -
source
_ encoding _ name (24) - tag (11)
-
to
_ s (23) - value (11)
検索結果
先頭5件
-
IO
. popen(env = {} , command , mode = "r" , opt={}) {|f| . . . } -> object (14.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...ls", "/", :err=>[:child, :out]]) {|ls_io|
ls_result_with_error = ls_io.read
}
# 上と同じ、配列の外側でもオプションが指定できる
IO.popen(["ls", "/"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}
@param env 環境変数を { 変数名 =>... -
Object
:: SCRIPT _ LINES _ _ -> Hash (14.0) -
ソースファイル別にまとめられたソースコードの各行。
...ES__ = {}
require 'English'
pp SCRIPT_LINES__
# => {"/usr/local/lib/ruby/1.6/English.rb"=>
# ["alias $ERROR_INFO $!\n",
# "alias $ERROR_POSITION $@\n",
# "alias $LOADED_FEATURES $\"\n",
# :
# :... -
StopIteration
# result -> object (14.0) -
この例外オブジェクトを発生させる原因となったメソッド等の返り値を返します。
...ect = Object.new
def object.each
yield :yield1
yield :yield2
:each_returned
end
enumerator = object.to_enum
p enumerator.next #=> :yield1
p enumerator.next #=> :yield2
begin
enumerator.next
rescue StopIteration => error
p error.result #=> :each_returned
end... -
Errno
:: EXXX . new() -> Errno :: EXXX (9.0) -
Errno::EXXX オブジェクトを生成して返します。
...Errno::EXXX オブジェクトを生成して返します。
@param error_message エラーメッセージを表す文字列
p Errno::ENOENT.new
# => #<Errno::ENOENT: No such file or directory>
p Errno::ENOENT.new('message')
# => #<Errno::ENOENT: No such file or directory - message... -
IO
. popen("-" , mode = "r" , opt={}) -> IO (4.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
第一引数に文字列 "-" が指定された時、fork(2) を
行い子プロセスの標準入出力との間にパイプラインを確立します。
親プロセスでは IO オブジェクトを返し、子プロセスでは
nil を返します。
io = IO.popen("-", "r+")
if io # parent
io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
... -
IO
. popen("-" , mode = "r" , opt={}) {|io| . . . } -> object (4.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
第一引数に文字列 "-" が指定された時、fork(2) を
行い子プロセスの標準入出力との間にパイプラインを確立します。
親プロセスでは IO オブジェクトを返し、子プロセスでは
nil を返します。
io = IO.popen("-", "r+")
if io # parent
io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
... -
IO
. popen(env , "-" , mode = "r" , opt={}) -> IO (4.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
第一引数に文字列 "-" が指定された時、fork(2) を
行い子プロセスの標準入出力との間にパイプラインを確立します。
親プロセスでは IO オブジェクトを返し、子プロセスでは
nil を返します。
io = IO.popen("-", "r+")
if io # parent
io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
... -
IO
. popen(env , "-" , mode = "r" , opt={}) {|io| . . . } -> object (4.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
第一引数に文字列 "-" が指定された時、fork(2) を
行い子プロセスの標準入出力との間にパイプラインを確立します。
親プロセスでは IO オブジェクトを返し、子プロセスでは
nil を返します。
io = IO.popen("-", "r+")
if io # parent
io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
...