524件ヒット
[1-100件を表示]
(0.115秒)
モジュール
- Kernel (524)
キーワード
-
$ -0 (11) -
$ -F (11) -
$ -I (11) -
$ -K (11) -
$ -W (11) -
$ -a (11) -
$ -d (11) -
$ -i (11) -
$ -l (11) -
$ -p (11) -
$ -v (11) -
$ -w (11) -
$ / (11) -
$ : (11) -
$ ; (11) -
$ > (11) -
$ CHILD _ STATUS (11) -
$ DEBUG (11) -
$ DEFAULT _ INPUT (11) -
$ DEFAULT _ OUTPUT (11) -
$ FIELD _ SEPARATOR (11) -
$ FS (11) -
$ INPUT _ RECORD _ SEPARATOR (11) -
$ KCODE (11) -
$ LAST _ MATCH _ INFO (11) -
$ LAST _ READ _ LINE (11) -
$ LDFLAGS (11) -
$ LOADED _ FEATURES (11) -
$ LOAD _ PATH (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
$ PID (11) -
$ PROCESS _ ID (11) -
$ RS (11) -
$ SAFE (7) -
$ VERBOSE (11) -
$ archdir (11) -
$ defs (11) -
$ hdrdir (11) -
$ libdir (11) -
$ sitearchdir (11) -
$ sitelibdir (11) -
$ srcdir (11) -
$ stderr (11) -
$ stdin (11) -
$ stdout (11) -
$ topdir (11) -
$ ~ (11)
検索結果
先頭5件
-
Kernel
$ $ -d -> bool (6114.0) -
この値が真のときはインタプリタがデバッグモードになります。
...この値が真のときはインタプリタがデバッグモードになります。
コマンドラインオプション -d でセットされます。
スクリプトから代入することもできます。
デバッグモードでは、通常モードに比べて以下の違いがあり......になります。
Thread.abort_on_exception を
true にセットするのと同じ効果です。
* Thread.abort_on_exception= の効果がなくなります。
* 例外を捕捉しているかどうかに関係なく、
例外が発生した時点で $stderr にそれが出力されま......す。
スクリプトの処理は続行されます。
この変数はグローバルスコープです。
@see spec/rubycmd... -
Kernel
$ $ DEBUG -> bool (6114.0) -
この値が真のときはインタプリタがデバッグモードになります。
...この値が真のときはインタプリタがデバッグモードになります。
コマンドラインオプション -d でセットされます。
スクリプトから代入することもできます。
デバッグモードでは、通常モードに比べて以下の違いがあり......になります。
Thread.abort_on_exception を
true にセットするのと同じ効果です。
* Thread.abort_on_exception= の効果がなくなります。
* 例外を捕捉しているかどうかに関係なく、
例外が発生した時点で $stderr にそれが出力されま......す。
スクリプトの処理は続行されます。
この変数はグローバルスコープです。
@see spec/rubycmd... -
Kernel
$ $ CHILD _ STATUS -> Process :: Status | nil (6101.0) -
$? の別名
...$? の別名
require "English"
out = `wget https://www.ruby-lang.org/en/about/license.txt -O - 2>/dev/null`
if $CHILD_STATUS.to_i == 0
print "wget success\n"
out.split(/\n/).each { |line|
printf "%s\n", line
}
else
print "wget failed\n"
end... -
Kernel
$ $ DEFAULT _ INPUT -> IO (6101.0) -
$< の別名
...$< の別名
require "English"
while line = $DEFAULT_INPUT.gets
p line
end
# end of sample.rb
ruby sample.rb < /etc/passwd
# => "hoge:x:500:501::/home/hoge:/bin/bash\n"
...... -
Kernel
$ $ DEFAULT _ OUTPUT -> IO (6101.0) -
$> の別名
...$> の別名
require "English"
dout = $DEFAULT_OUTPUT.dup
$DEFAULT_OUTPUT.reopen("out.txt", "w")
print "foo"
$DEFAULT_OUTPUT.close
$DEFAULT_OUTPUT = dout
p "bar" # => bar
p File.read("out.txt") #=> foo... -
Kernel
$ $ FIELD _ SEPARATOR -> String | nil (6101.0) -
$; の別名
...$; の別名
require "English"
str = "hoge,fuga,ugo,bar,foo"
p str.split #=> ["hoge,fuga,ugo,bar,foo"]
$FIELD_SEPARATOR = ","
p str.split #=> ["hoge", "fuga", "ugo", "bar", "foo"]... -
Kernel
$ $ INPUT _ RECORD _ SEPARATOR -> String | nil (6101.0) -
$/ の別名
...$/ の別名
require "English"
$INPUT_RECORD_SEPARATOR = '|'
array = []
while line = DATA.gets
array << line
end
p array #=> ["ugo|", "ego|", "fogo\n"]
__END__
ugo|ego|fogo... -
Kernel
$ $ LAST _ READ _ LINE -> String | nil (6101.0) -
$_ の別名
...$_ の別名
1 e
2 f
3 g
4 h
5 i
# end of a.txt
ruby -rEnglish -ne'p $LAST_READ_LINE' a.txt
#=>
"1 e\n"
"2 f\n"
"3 g\n"
"4 h\n"
"5 i\n"... -
Kernel
$ $ LDFLAGS -> String (6101.0) -
拡張ライブラリをリンクするときのリンカのオプション、 ライブラリファイルのディレクトリを指定する文字列です。
...拡張ライブラリをリンクするときのリンカのオプション、
ライブラリファイルのディレクトリを指定する文字列です。
Kernel#find_library または Kernel#dir_config
の検査が成功すると、$LDFLAGS の値に "-Ldir" を追加します。... -
Kernel
$ $ PID -> Integer (6101.0) -
$$ の別名
...$$ の別名
require "English"
p sprintf("something%s", $PID) #=> "something5543" など...