3041件ヒット
[1-100件を表示]
(0.155秒)
種類
ライブラリ
クラス
-
ARGF
. class (344) - CSV (33)
-
Encoding
:: Converter (11) - Exception (14)
-
File
:: Stat (22) - IO (173)
-
IRB
:: Inspector (11) - Module (11)
-
Net
:: POP3 (11) - Object (39)
- OptionParser (81)
- PP (11)
-
RDoc
:: Options (11) -
REXML
:: Document (22) -
REXML
:: Element (11) - String (149)
- StringIO (91)
- Thread (23)
-
WIN32OLE
_ TYPE (11) -
Zlib
:: GzipReader (77)
モジュール
-
CGI
:: HtmlExtension (22) - Enumerable (22)
-
GC
:: Profiler (22) - Kernel (1506)
-
OpenSSL
:: Buffering (55) -
OptionParser
:: Arguable (11) - Syslog (44)
- Timeout (19)
キーワード
-
$ ! (11) -
$ " (11) -
$ $ (11) -
$ & (11) -
$ & # 39; (11) -
$ * (11) -
$ + (11) -
$ , (11) -
$ -0 (11) -
$ -F (11) -
$ -I (11) -
$ -K (7) -
$ -i (11) -
$ -v (11) -
$ -w (11) -
$ . (11) -
$ / (11) -
$ 0 (11) -
$ 1 (11) -
$ 10 (11) -
$ 11 (11) -
$ 2 (11) -
$ 3 (11) -
$ 4 (11) -
$ 5 (11) -
$ 6 (11) -
$ 7 (11) -
$ 8 (11) -
$ 9 (11) -
$ : (11) -
$ ; (11) -
$ < (11) -
$ > (11) -
$ ? (11) -
$ @ (11) -
$ ARGV (11) -
$ CFLAGS (11) -
$ CHILD _ STATUS (11) -
$ DEFAULT _ INPUT (11) -
$ DEFAULT _ OUTPUT (11) -
$ ERROR _ INFO (11) -
$ ERROR _ POSITION (11) -
$ FIELD _ SEPARATOR (11) -
$ FILENAME (11) -
$ FS (11) -
$ IGNORECASE (11) -
$ INPUT _ LINE _ NUMBER (11) -
$ INPUT _ RECORD _ SEPARATOR (11) -
$ KCODE (7) -
$ LAST _ MATCH _ INFO (11) -
$ LAST _ PAREN _ MATCH (11) -
$ LAST _ READ _ LINE (11) -
$ LDFLAGS (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) -
$ PROGRAM _ NAME (11) -
$ RS (11) -
$ SAFE (7) -
$ VERBOSE (11) -
$ \ (11) -
$ _ (11) -
$ ` (11) -
$ archdir (11) -
$ defs (11) -
$ hdrdir (11) -
$ libdir (11) -
$ libs (11) -
$ sitearchdir (11) -
$ sitelibdir (11) -
$ srcdir (11) -
$ stdin (11) -
$ stdout (11) -
$ topdir (11) -
$ ~ (11) - ConditionVariable (11)
- DATA (11)
- English (11)
- NKF (11)
- OBJSETUP (2)
- Rubyの起動 (11)
- Ruby用語集 (11)
-
SCRIPT
_ LINES _ _ (11) -
arg
_ config (11) - bigdecimal (11)
- binmode (11)
- caller (33)
- chomp (11)
- chomp! (11)
- constants (11)
- debug (11)
-
def
_ inspector (11) - display (11)
- each (107)
-
each
_ char (22) -
each
_ codepoint (22) -
each
_ line (143) -
enable
_ config (22) - exec (44)
- fail (22)
- file (11)
- filename (11)
- fileno (11)
- filter (33)
- foreach (30)
- format (11)
- getbyte (11)
- getc (11)
- getopts (11)
- gets (88)
- grpowned? (11)
- gsub (11)
- gsub! (33)
-
have
_ header (22) - html (22)
-
inplace
_ mode (11) -
inplace
_ mode= (11) -
insert
_ output (11) -
internal
_ encoding (11) - irb (11)
-
irb
/ completion (11) - libpathflag (11)
- lines (64)
-
link
_ command (11) - open (22)
- open! (11)
- order (32)
- order! (22)
- path (11)
- permute (16)
- permute! (11)
- pid (11)
- print (11)
- printf (22)
- profile (6)
- progids (11)
- puts (11)
- raise (22)
- read (11)
- readbyte (11)
- readchar (11)
- readline (66)
- readlines (77)
- reopen (11)
- report (11)
-
report
_ on _ exception (16) - require (11)
-
require
_ relative (11) - result (11)
-
ruby 1
. 8 . 2 feature (11) -
rubygems
/ security (11) -
safe
_ level (7) -
singleline
_ pp (11) - skip (11)
-
sort
_ by (22) - spawn (44)
- split (17)
- sprintf (11)
- sub (11)
- sub! (22)
- symlink? (11)
- system (44)
- taint (6)
- timeout (19)
-
to
_ a (11) -
to
_ i (11) -
to
_ tty? (7) -
trace
_ var (33) -
try
_ compile (22) -
try
_ constant (22) -
try
_ link (22) -
try
_ run (22) -
try
_ static _ assert (22) -
untrace
_ var (11) - warn (22)
-
warning
_ unless _ e _ option (11) -
with
_ config (22) - write (33)
- セキュリティモデル (11)
- 制御構造 (11)
- 変数と定数 (11)
- 正規表現 (11)
検索結果
先頭5件
-
irb
/ completion (32006.0) -
irb の completion 機能を提供するライブラリです。
...irb の completion 機能を提供するライブラリです。
=== 使い方
$ irb -r irb/completion
とするか, ~/.irbrc 中に
require "irb/completion"
を入れてください.
irb実行中に require "irb/completion" してもよいです.
irb 実行中に [Tab] を押すとコ......全に補完します.
irb(main):001:0> in
in inspect instance_eval
include install_alias_method instance_of?
initialize install_aliases instance_variables
irb(main):001:0> inspect
"main"
irb(main):002:0> foo = Objec......覧がでます.
irb(main):003:0> foo.
foo.== foo.frozen? foo.protected_methods
foo.=== foo.hash foo.public_methods
foo.=~ foo.id foo.respond_to?
foo.__id__ foo.inspect f... -
irb (26198.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン......す。
$ irb
irb(main):001:0>
あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。
irb(main):001:0> 1+2
3
irb(main):002:0> class Foo
irb(main):003:1> def foo
irb(main):004:2> print 1
irb(main):005:2> end
irb(main):006:......1> end
:foo
irb(main):007:0>
また irb コマンドは readline ライブラリにも対応しています。
readline ライブラリがインストールされている時には
自動的にコマンドライン編集や履歴の機能が使えるようになります。
=== irb のコマ... -
Kernel
$ $ INPUT _ LINE _ NUMBER -> Integer (24514.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 _ READ _ LINE -> String | nil (18419.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
$ $ CHILD _ STATUS -> Process :: Status | nil (18413.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... -
ARGF
. class # internal _ encoding -> Encoding | nil (18406.0) -
ARGF から読み込んだ文字列の内部エンコーディングを返します。 内部エンコーディングが指定されていない場合は nil を返します。
...nil を返します。
まだ読み込み処理を始めていない場合は Encoding.default_external を返します。
ARGF.class#set_encoding で設定します。
例:
# $ ruby -Eutf-8 test.rb
# test.rb
ARGF.internal_encoding # => #<Encoding:UTF-8>
ARGF.set_encoding('u......tf-8','ascii')
ARGF.internal_encoding # => #<Encoding:US-ASCII>
例:
ARGF.binmode
ARGF.internal_encoding # => nil
@see IO, ARGF.class#external_encoding... -
PP
. singleline _ pp(obj , out= $ >) -> object (18400.0) -
指定されたオブジェクト obj を出力先 out に出力します。 ただし、インデントも改行もしません。 出力先 out を返します。
指定されたオブジェクト obj を出力先 out に出力します。
ただし、インデントも改行もしません。
出力先 out を返します。
@param obj 表示したいオブジェクトを指定します。
@param out 出力先を指定します。<< メソッドが定義されている必要があります。 -
Kernel
$ $ LAST _ MATCH _ INFO -> MatchData | nil (18319.0) -
$~ の別名
...
$~ の別名
require "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/lic......ense.txt"
p $LAST_MATCH_INFO[2] #=> nil
end... -
Kernel
$ $ FIELD _ SEPARATOR -> String | nil (18308.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
$ $ DEFAULT _ INPUT -> IO (18307.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"
......