るりまサーチ

最速Rubyリファレンスマニュアル検索!
1012件ヒット [1-100件を表示] (0.129秒)
トップページ > クエリ:l[x] > 種類:変数[x]

別のキーワード

  1. matrix l
  2. kernel $-l
  3. _builtin $-l
  4. lupdecomposition l

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Kernel$$-l -> bool (6218.0)

コマンドラインオプション -l を指定したとき true に設定されます。 この変数には代入できません。

...コマンドラインオプション -l を指定したとき true に設定されます。
この変数には代入できません。

この変数はグローバルスコープです。

@see spec/rubycmd...

Kernel$$CFLAGS -> String (6101.0)

拡張ライブラリをコンパイルするときの C コンパイラのオプションや、 ヘッダファイルのディレクトリを指定する文字列です。

...拡張ライブラリをコンパイルするときの C コンパイラのオプションや、
ヘッダファイルのディレクトリを指定する文字列です。

Kernel#dir_config の検査が成功すると、
この変数の値に " -Idir" が追加されます。...

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$$FILENAME -> String (6101.0)

仮想ファイル Object::ARGF で現在読み込み中のファイル名です。 ARGF.class#filename と同じです。

...仮想ファイル Object::ARGF で現在読み込み中のファイル名です。
ARGF.class#filename と同じです。

この変数はグローバルスコープです。...

Kernel$$INPUT_LINE_NUMBER -> Integer (6101.0)

$. の別名

...$. の別名

1 e
2 f
3 g
4 h
5 i
# end of a.txt

require "English"

File.foreach(ARGV.at(0)){|line|
# read line
}
p $INPUT_LINE_NUMBER
# end of sample.rb

ruby sample.rb a.txt
#=> 5...

Kernel$$LAST_MATCH_INFO -> MatchData | nil (6101.0)

$~ の別名

...e "English"

str = "<a href=https://www.ruby-lang.org/en/about/license.txt>license</a>"

if /<a href=(.+?)>/ =~ str
p $LAST_MATCH_INFO[0] #=> "<a href=https://www.ruby-lang.org/en/about/license.txt>"
p $LAST_MATCH_INFO[1] #=> "https://www.ruby-lang.org/en/about/license.txt"
p $LAST_M...
...ATCH_INFO[2] #=> nil
end...

Kernel$$LAST_PAREN_MATCH -> String | nil (6101.0)

$+ の別名

...glish"

r1 = Regexp.compile("<img src=(http:.+?)>")
r2 = Regexp.compile("<a href=(http|ftp).+?>(.+?)</a>")

while line = DATA.gets
[ r1, r2 ].each {|rep|
rep =~ line
p $+
}
end
__END__
<tr> <td><img src=http://localhost/a.jpg></td> <td>ikkou</td> <td><a href=http://lo...
...calhost/link.html>link</a></td> </tr>
#enf of sample.rb

$ ruby sample.rb
"http://localhost/a.jpg"
"link"...

絞り込み条件を変える

<< 1 2 3 ... > >>