種類
ライブラリ
- English (300)
- ビルトイン (3506)
- benchmark (12)
- bigdecimal (36)
- continuation (48)
- csv (12)
- delegate (12)
- digest (12)
-
drb
/ extservm (12) - e2mmap (18)
-
irb
/ cmd / load (24) -
irb
/ xmp (24) - json (36)
-
minitest
/ spec (1) -
minitest
/ unit (2) - mkmf (1092)
- open-uri (80)
- open3 (24)
- openssl (24)
- pathname (24)
- pp (16)
- psych (24)
- pty (48)
- rake (108)
- rubygems (12)
-
rubygems
/ commands / lock _ command (12) -
rubygems
/ custom _ require (12) -
rubygems
/ timer (12) - scanf (30)
- shell (12)
-
shell
/ command-processor (18) -
shell
/ filter (12) - socket (96)
- stringio (108)
- syslog (36)
- tempfile (55)
-
test
/ unit (1) - timeout (37)
- tracer (12)
- un (156)
- uri (12)
-
webrick
/ utils (12) - win32ole (12)
- zlib (36)
クラス
-
ARGF
. class (180) - Array (60)
- BasicObject (24)
-
Benchmark
:: Tms (12) - BigDecimal (12)
- Binding (12)
- CSV (12)
- Complex (12)
- Continuation (24)
-
DRb
:: ExtServManager (12) - Enumerator (12)
- Exception (24)
- File (36)
- IO (444)
-
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Require (12) - LoadError (12)
- Method (12)
- Module (156)
- Object (144)
-
OpenSSL
:: BN (12) - Proc (19)
- Random (103)
- Rational (12)
- Shell (12)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (12) - Socket (48)
- String (84)
- StringIO (108)
- SystemExit (12)
- Tempfile (55)
- Thread (60)
-
Thread
:: Backtrace :: Location (12) - TracePoint (12)
- Tracer (12)
- UnboundMethod (24)
- UncaughtThrowError (22)
-
WIN32OLE
_ EVENT (12) - XMP (12)
-
Zlib
:: GzipWriter (36)
モジュール
- Exception2MessageMapper (18)
- FileTest (12)
- Kernel (3778)
-
MiniTest
:: Assertions (2) - Open3 (24)
-
OpenSSL
:: Buffering (12) - OpenURI (24)
-
OpenURI
:: OpenRead (24) - PTY (48)
- Process (48)
-
Socket
:: Constants (48) - Syslog (36)
-
Test
:: Unit (1) - Timeout (21)
- URI (16)
-
WEBrick
:: Utils (12) - Warning (18)
キーワード
-
$ ! (12) -
$ " (12) -
$ $ (12) -
$ & (12) -
$ & # 39; (12) -
$ * (12) -
$ + (12) -
$ , (12) -
$ -0 (12) -
$ -F (12) -
$ -I (12) -
$ -K (12) -
$ -W (12) -
$ -a (12) -
$ -d (12) -
$ -i (12) -
$ -l (12) -
$ -p (12) -
$ -v (12) -
$ -w (12) -
$ . (12) -
$ / (12) -
$ 0 (12) -
$ 1 (12) -
$ 10 (12) -
$ 11 (12) -
$ 2 (12) -
$ 3 (12) -
$ 4 (12) -
$ 5 (12) -
$ 6 (12) -
$ 7 (12) -
$ 8 (12) -
$ 9 (12) -
$ : (12) -
$ ; (12) -
$ < (12) -
$ = (12) -
$ > (12) -
$ ? (12) -
$ @ (12) -
$ ARGV (12) -
$ CFLAGS (12) -
$ CHILD _ STATUS (12) -
$ DEBUG (12) -
$ DEFAULT _ INPUT (12) -
$ DEFAULT _ OUTPUT (12) -
$ ERROR _ INFO (12) -
$ ERROR _ POSITION (12) -
$ FIELD _ SEPARATOR (12) -
$ FILENAME (12) -
$ FS (12) -
$ IGNORECASE (12) -
$ INPUT _ LINE _ NUMBER (12) -
$ INPUT _ RECORD _ SEPARATOR (12) -
$ KCODE (12) -
$ LAST _ MATCH _ INFO (12) -
$ LAST _ PAREN _ MATCH (12) -
$ LAST _ READ _ LINE (12) -
$ LDFLAGS (12) -
$ LOADED _ FEATURES (12) -
$ LOAD _ PATH (12) -
$ MATCH (12) -
$ NR (12) -
$ OFS (12) -
$ ORS (12) -
$ OUTPUT _ FIELD _ SEPARATOR (12) -
$ OUTPUT _ RECORD _ SEPARATOR (12) -
$ PID (12) -
$ POSTMATCH (12) -
$ PREMATCH (12) -
$ PROCESS _ ID (12) -
$ PROGRAM _ NAME (12) -
$ RS (12) -
$ SAFE (12) -
$ VERBOSE (12) -
$ \ (12) -
$ _ (12) -
$ ` (12) -
$ archdir (12) -
$ defs (12) -
$ hdrdir (12) -
$ libdir (12) -
$ libs (12) -
$ sitearchdir (12) -
$ sitelibdir (12) -
$ srcdir (12) -
$ stderr (12) -
$ stdin (12) -
$ stdout (12) -
$ topdir (12) -
$ ~ (12) - % (12)
-
AI
_ V4MAPPED _ CFG (24) - Array (12)
- BigDecimal (24)
- Binding (12)
- CONFIG (12)
- Complex (24)
- Continuation (12)
- Converters (12)
- DATA (12)
- DEFAULT (7)
- DelegateClass (12)
- Digest (12)
- Float (12)
- Hash (12)
- Integer (12)
- JSON (12)
- Location (12)
- LockCommand (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Pathname (24)
- Rational (24)
- Rubyの起動 (12)
- Ruby用語集 (12)
- RuntimeError (12)
-
SCRIPT
_ LINES _ _ (12) -
SO
_ ATTACH _ FILTER (24) -
SO
_ DETACH _ FILTER (24) -
SO
_ NKE (24) - Scanf (6)
- String (12)
- TracePoint (12)
- URI (12)
- UncaughtThrowError (11)
- Win32ネイティブ版Rubyの互換性問題 (12)
- [] (30)
-
_ _ callee _ _ (12) -
_ _ dir _ _ (12) -
_ _ method _ _ (12) - ` (12)
- abort (24)
-
add
_ filter (12) -
add
_ trace _ func (12) -
alias
_ method (12) - ancestors (12)
-
arg
_ config (12) -
assert
_ throws (1) -
at
_ exit (12) - autoload (24)
- autoload? (24)
-
backtrace
_ locations (24) - bigdecimal (12)
-
bind
_ call (12) - binding (12)
- binread (12)
- binwrite (12)
-
block
_ given? (12) - call (12)
- callcc (12)
- caller (36)
-
caller
_ locations (24) - catch (24)
-
cc
_ command (12) -
check
_ signedness (24) -
check
_ sizeof (24) - chmod (12)
- chomp (12)
- chop (12)
-
class
_ eval (12) -
class
_ variables (12) - command (12)
-
const
_ defined? (12) - constants (24)
- convert (12)
-
convertible
_ int (24) - cp (12)
-
cpp
_ command (12) - create (22)
-
create
_ header (12) -
create
_ makefile (12) -
create
_ tmpsrc (12) -
def
_ exception (6) -
defined
_ class (12) -
depend
_ rules (12) - desc (12)
- describe (1)
-
dir
_ config (12) - directory (12)
-
dummy
_ makefile (12) -
egrep
_ cpp (24) -
enable
_ config (24) - eval (36)
- exception (24)
- exec (48)
- execute (24)
- exit (12)
- exit! (12)
- fail (36)
- file (12)
-
file
_ create (12) -
find
_ executable (12) -
find
_ header (12) -
find
_ library (24) -
find
_ type (24) - foreach (24)
- fork (48)
- format (24)
- gem (12)
- getpty (24)
- gets (48)
-
global
_ variables (12) - gsub (36)
-
have
_ devel? (12) -
have
_ framework (24) -
have
_ func (24) -
have
_ header (24) -
have
_ library (24) -
have
_ macro (24) -
have
_ struct _ member (24) -
have
_ type (24) -
have
_ var (24) - help (12)
- hex (12)
- httpd (12)
- identical? (12)
- import (12)
- include (12)
- info (12)
- inspect (12)
- install (12)
-
install
_ files (12) -
install
_ rb (12) -
instance
_ eval (24) -
instance
_ variables (12) - irb (12)
- iterator? (12)
- j (12)
- jj (12)
- kill (12)
- lambda (18)
- libpathflag (12)
-
link
_ command (12) - ln (12)
- load (12)
-
local
_ variables (12) -
log
_ src (12) - loop (24)
- mathn (4)
-
merge
_ libs (12) - method (12)
-
minitest
/ autorun (12) -
minitest
/ unit (1) - mkdir (12)
- mkmf (12)
- modified? (12)
-
module
_ eval (12) - multitask (12)
- mv (12)
- namespace (12)
- new (90)
- next (12)
- notice (12)
- oct (12)
- open (174)
- open-uri (6)
-
open
_ uri (24) - owner (24)
- p (12)
- path (12)
- popen (168)
- popen3 (24)
- pp (24)
-
pretty
_ print (24) - print (72)
- printf (84)
- proc (19)
-
psych
_ y (12) -
public
_ instance _ method (12) - putc (12)
- puts (60)
- raise (36)
- rand (96)
-
rb
_ String (12) -
rb
_ exec _ end _ proc (12) -
rb
_ f _ integer (12) -
rb
_ f _ string (12) -
rb
_ load (12) - read (36)
- readline (48)
- readlines (84)
- rectangular (12)
-
remove
_ const (12) - reopen (60)
- require (24)
-
require
_ relative (12) - rm (12)
-
rm
_ f (12) -
rm
_ rf (12) - rmdir (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 8 . 5 feature (12) -
ruby 1
. 9 feature (12) -
rubygems
/ commands / lock _ command (12) - rule (12)
-
run
_ config (6) - sample (48)
- scanf (24)
- select (24)
- send (24)
-
set
_ close _ on _ exec (12) -
set
_ trace _ func (36) -
setup
_ argv (1) - shuffle! (12)
-
singleton
_ method (12) - skip (1)
- sleep (24)
- spawn (84)
- sprintf (12)
- sprintf フォーマット (12)
- srand (48)
- status (12)
- sub (24)
- syscall (12)
- sysopen (12)
- system (48)
- tag (11)
- task (12)
- terminate (12)
- test (42)
- throw (12)
- time (12)
- timeout (37)
-
to
_ a (36) -
to
_ f (12) -
to
_ i (12) -
to
_ int (12) -
to
_ r (12) -
to
_ s (24) -
to
_ str (12) - touch (12)
-
trace
_ var (36) - trap (24)
-
try
_ compile (24) -
try
_ constant (24) -
try
_ cpp (24) -
try
_ do (24) -
try
_ func (24) -
try
_ link (24) -
try
_ run (24) -
try
_ static _ assert (24) -
try
_ type (24) -
try
_ var (24) -
untrace
_ var (12) - value (11)
-
wait
_ writable (12) - warn (30)
- warning (12)
-
with
_ config (24) -
with
_ werror (24) - write (24)
- xmp (12)
- xpopen (24)
- xsystem (12)
- y (12)
- クラス/メソッドの定義 (12)
- 制御構造 (12)
- 環境変数 (12)
- 終了処理 (12)
検索結果
先頭5件
-
Kernel (44000.0)
-
全てのクラスから参照できるメソッドを定義しているモジュール。 Object クラスはこのモジュールをインクルードしています。
全てのクラスから参照できるメソッドを定義しているモジュール。
Object クラスはこのモジュールをインクルードしています。
Object クラスのメソッドは実際にはこのモジュールで定義されていま
す。これはトップレベルでのメソッドの再定義に対応するためです。 -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (36400.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
...Returns the signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_O......F_', followed by the +type+
name, followed by '=X' where 'X' is positive integer if the +type+ is
unsigned, or negative integer if the +type+ is signed.
For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocesso......r macro would be passed to the
compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is
done.... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) { . . . } -> "signed" | "unsigned" | nil (36400.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
...Returns the signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_O......F_', followed by the +type+
name, followed by '=X' where 'X' is positive integer if the +type+ is
unsigned, or negative integer if the +type+ is signed.
For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocesso......r macro would be passed to the
compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is
done.... -
Kernel
. # readlines(rs = $ / ) -> [String] (30260.0) -
ARGFを Kernel.#gets(rs) でEOFまで読み込んで、その各行を要素としてもつ配列を返します。 行の区切りは引数 rs で指定した文字列になります。
...ARGFを Kernel.#gets(rs) でEOFまで読み込んで、その各行を要素としてもつ配列を返します。
行の区切りは引数 rs で指定した文字列になります。
rs に nil を指定すると行区切りなしとみなします。
空文字列 "" を指定すると連続......rno::EXXX 読み込みに失敗した場合に発生します。
//emlist[main.rb][ruby]{
ARGV << 'b.txt' << 'b.txt'
p readlines #=> ["hello\n", "it\n", "\n", "common\n", "hello\n", "it\n", "\n", "common\n"]
ARGV << 'b.txt' << 'b.txt'
p readlines(nil) #=> ["hello\nit\n\ncommon\n", "hello\ni......t\n\ncommon\n"]
ARGV << 'b.txt' << 'b.txt'
p readlines("") #=> ["hello\nit\n\n", "common\n", "hello\nit\n\n", "common\n"]
ARGV << 'b.txt' << 'b.txt'
p readlines('it') #=> ["hello\nit", "\n\ncommon\n", "hello\nit", "\n\ncommon\n"]
p readlines #=> []
//}
//emlist[b.txt][ruby]{
hello
it
com... -
Kernel
. # readline(rs = $ / ) -> String (30148.0) -
ARGFから一行読み込んで、それを返します。 行の区切りは引数 rs で指定した文字列になります。
...ARGFから一行読み込んで、それを返します。
行の区切りは引数 rs で指定した文字列になります。
rs に nil を指定すると行区切りなしとみなしてファイルの内容を
すべて読み込みます。ARGVに複数のファイル名が存在する場......ise Errno::EXXX 読み込みに失敗した場合に発生します。
@raise EOFError readline でファイル末端(EOF)を検出すると発生します。
//emlist[例][ruby]{
# ---main.rb---
ARGV << 'b.txt' << 'c.txt'
p readline #=> "hello\n"
p readline(nil) #=> "it\ncommon\n"
p readline("") #......t ---
hello
it
common
# --- c.txt ---
ARGF
# スクリプトに指定した引数 (Object::ARGV を参照) をファイル名と
# みなして、それらのファイルを連結した 1 つの仮想ファイルを表すオブジェクトです。
//}
@see $/,ARGF,Kernel.#readlines,Kernel.#gets... -
Kernel
$ $ LAST _ READ _ LINE -> String | nil (30130.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
$ $ INPUT _ LINE _ NUMBER -> Integer (30100.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
$ $ NR -> Integer (30100.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
# namespace(name = nil) { . . . } -> Rake :: NameSpace (27300.0) -
新しい名前空間を作成します。
...新しい名前空間を作成します。
与えられたブロックを評価する間は、その名前空間を使用します。
例:
ns = namespace "nested" do
task :run
end
task_run = ns[:run] # find :run in the given namespace.
@see Rake::TaskManager#in_namespace...