429件ヒット
[201-300件を表示]
(0.031秒)
別のキーワード
種類
- 変数 (319)
- インスタンスメソッド (88)
- モジュール関数 (22)
キーワード
-
$ " (11) -
$ -I (11) -
$ : (11) -
$ ARGV (11) -
$ CHILD _ STATUS (11) -
$ DEFAULT _ INPUT (11) -
$ DEFAULT _ OUTPUT (11) -
$ ERROR _ INFO (11) -
$ ERROR _ POSITION (11) -
$ FIELD _ SEPARATOR (11) -
$ FS (11) -
$ IGNORECASE (11) -
$ INPUT _ LINE _ NUMBER (11) -
$ INPUT _ RECORD _ SEPARATOR (11) -
$ LAST _ MATCH _ INFO (11) -
$ LAST _ PAREN _ MATCH (11) -
$ LOADED _ FEATURES (11) -
$ LOAD _ PATH (11) -
$ MATCH (11) -
$ NR (11) -
$ OFS (11) -
$ ORS (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
$ PID (11) -
$ POSTMATCH (11) -
$ PREMATCH (11) -
$ PROCESS _ ID (11) -
$ RS (11) -
enable
_ config (22) -
require
_ relative (11) -
try
_ cpp (22) -
try
_ link (22) -
with
_ config (22)
検索結果
先頭5件
-
Kernel
$ $ OUTPUT _ FIELD _ SEPARATOR -> String | nil (6115.0) -
$, の別名
...
$, の別名
require "English"
array = %w|hoge fuga ugo bar foo|
p array.join #=> "hogefugaugobarfoo"
$OUTPUT_FIELD_SEPARATOR = ","
p array.join #=> "hoge,fuga,ugo,bar,foo"... -
Kernel
$ $ OUTPUT _ RECORD _ SEPARATOR -> String | nil (6115.0) -
$\ の別名
...
$\ の別名
require "English"
print "hoge\nhuga\n"
$OUTPUT_RECORD_SEPARATOR = "\n"
print "fuge"
print "ugo"
# end of sample.rb
ruby sample.rb
hoge
huga
fuge
ugo... -
Kernel
$ $ PID -> Integer (6115.0) -
$$ の別名
...
$$ の別名
require "English"
p sprintf("something%s", $PID) #=> "something5543" など... -
Kernel
$ $ PROCESS _ ID -> Integer (6115.0) -
$$ の別名
...
$$ の別名
require "English"
p sprintf("something%s", $PID) #=> "something5543" など... -
Kernel
$ $ RS -> String | nil (6115.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
$ $ ARGV -> [String] (6114.0) -
$* の別名
...
$* の別名
require "English"
p $ARGV
# end of sample.rb
ruby sample.rb 31 /home/hoge/fuga.txt
#=> ["31", "/home/hoge/fuga.txt"]... -
Kernel
$ $ CHILD _ STATUS -> Process :: Status | nil (6114.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 (6114.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
$ $ ERROR _ POSITION -> [String] | nil (6114.0) -
$@ の別名
...
$@ の別名
require "English"
class SomethingError < StandardError; end
begin
raise SomethingError
rescue
p $ERROR_POSITION #=> ["sample.rb:5"]
end... -
Kernel
$ $ LAST _ PAREN _ MATCH -> String | nil (6114.0) -
$+ の別名
...
$+ の別名
require "English"
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>ikko......u</td> <td><a href=http://localhost/link.html>link</a></td> </tr>
#enf of sample.rb
$ ruby sample.rb
"http://localhost/a.jpg"
"link"...