2941件ヒット
[1-100件を表示]
(0.242秒)
種類
ライブラリ
クラス
-
ARGF
. class (344) - CSV (33)
-
Encoding
:: Converter (11) - Exception (7)
-
File
:: Stat (11) - IO (162)
-
IRB
:: Inspector (11) - Module (11)
-
Net
:: POP3 (11) - Object (11)
- OptionParser (81)
-
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)
キーワード
-
$ ! (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)
- NKF (11)
- 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) - 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)
- 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) - skip (11)
-
sort
_ by (22) - spawn (44)
- split (17)
- sprintf (11)
- sub (11)
- sub! (22)
- system (44)
-
to
_ a (11) -
to
_ i (11) -
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 (38012.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 (32210.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 (30714.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
. # require _ relative(relative _ feature) -> bool (24812.0) -
現在のファイルからの相対パスで require します。
...相対パスで require します。
require File.expand_path(relative_feature, File.dirname(__FILE__))
とほぼ同じです。
Kernel.#eval などで文字列を評価した場合に、そこから
require_relative を呼出すと必ず失敗します。
@param relative_feature ファイル......名の文字列です。
@raise LoadError ロードに失敗した場合に発生します。
@see Kernel.#require
=== require と load のスコープ
ローカル変数はファイル間では共有されません。ですので、
ロードしたライブラリのローカル変数を
ロード......扱い方はKernel.#loadでも同様です。
//emlist[例][ruby]{
# ---------- some.rb -----------
$a = 1
@a = 1
A = 1
a = 1
# ---------- end some.rb -------
require 'some'
p $a #=> 1
p @a #=> 1
p A #=> 1
p a # undefined local variable or method `a' for #<Object:0x294f9ec @a=1> (NameError)
//}... -
Kernel
$ $ LAST _ READ _ LINE -> String | nil (24519.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"... -
ARGF
. class # internal _ encoding -> Encoding | nil (24506.0) -
ARGF から読み込んだ文字列の内部エンコーディングを返します。 内部エンコーディングが指定されていない場合は nil を返します。
...ARGF から読み込んだ文字列の内部エンコーディングを返します。
内部エンコーディングが指定されていない場合は nil を返します。
まだ読み込み処理を始めていない場合は Encoding.default_external を返します。
ARGF.class#set_encodi......# $ ruby -Eutf-8 test.rb
# test.rb
ARGF.internal_encoding # => #<Encoding:UTF-8>
ARGF.set_encoding('utf-8','ascii')
ARGF.internal_encoding # => #<Encoding:US-ASCII>
例:
ARGF.binmode
ARGF.internal_encoding # => nil
@see IO, ARGF.class#external_encodin... -
Zlib
:: GzipReader # readline(rs = $ / ) -> String (24500.0) -
IO クラスの同名メソッドIO#readlineと同じです。
...IO クラスの同名メソッドIO#readlineと同じです。
但し、gzip ファイル中に
エラーがあった場合 Zlib::Error 例外や
Zlib::GzipFile::Error 例外が発生します。
gzip ファイルのフッターの処理に注意して下さい。
gzip ファイルのフッター......クサムが
記録されています。GzipReader オブジェクトは、次の時に展開した
データとフッターの照合を行い、エラーがあった場合は
Zlib::GzipFile::NoFooter, Zlib::GzipFile::CRCError,
Zlib::GzipFile::LengthError 例外を発生させます。
* EOF (圧......Zlib::GzipReader#read,
Zlib::GzipReader#gets メソッド等が nil を返す時。
* EOF まで読み込んだ後、Zlib::GzipFile#close メソッドが
呼び出された時。
* EOF まで読み込んだ後、Zlib::GzipReader#unused メソッドが
呼び出された時。
@para... -
Kernel
$ $ FIELD _ SEPARATOR -> String | nil (24408.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
$ $ libdir -> String (24401.0) -
Ruby のライブラリを置くディレクトリです。 通常は "/usr/local/lib/ruby/バージョン" です。
...
Ruby のライブラリを置くディレクトリです。
通常は "/usr/local/lib/ruby/バージョン" です。... -
Kernel
$ $ sitelibdir -> String (24401.0) -
サイト固有のライブラリを置くディレクトリです。 通常は "/usr/local/lib/ruby/site_ruby/バージョン" です。
...サイト固有のライブラリを置くディレクトリです。
通常は "/usr/local/lib/ruby/site_ruby/バージョン" です。...