ライブラリ
- English (154)
- ビルトイン (315)
- abbrev (22)
- benchmark (11)
- bigdecimal (44)
-
bigdecimal
/ math (66) -
bigdecimal
/ util (22) - cmath (24)
- csv (88)
- date (77)
- dbm (22)
- delegate (11)
- digest (22)
- etc (11)
-
fiddle
/ import (66) - fileutils (33)
- forwardable (44)
- gdbm (11)
- ipaddr (11)
- json (209)
-
json
/ add / rational (11) - logger (74)
- matrix (589)
- mkmf (22)
-
net
/ ftp (18) -
net
/ http (11) - objspace (22)
- open3 (11)
- openssl (66)
- optparse (55)
- pathname (321)
- prettyprint (11)
- prime (66)
- rake (11)
-
rdoc
/ markup (11) - readline (44)
-
rexml
/ document (418) -
rinda
/ tuplespace (11) -
ripper
/ lexer (18) -
rubygems
/ custom _ require (11) -
rubygems
/ requirement (11) -
rubygems
/ source _ index (11) -
rubygems
/ specification (88) - sdbm (22)
- securerandom (11)
- shell (54)
-
shell
/ command-processor (24) -
shell
/ filter (24) - socket (220)
- stringio (51)
- strscan (88)
- syslog (11)
- tempfile (33)
- time (22)
- tsort (50)
- uri (33)
-
webrick
/ httpresponse (22) -
webrick
/ httpstatus (11) -
webrick
/ httputils (55) -
webrick
/ log (11) -
win32
/ resolv (11) - zlib (242)
クラス
- Addrinfo (11)
- Array (30)
- BasicSocket (11)
- BigDecimal (22)
- CSV (44)
-
CSV
:: Row (33) -
CSV
:: Table (11) - Class (11)
- DBM (22)
- Date (44)
- DateTime (33)
-
Digest
:: Base (22) - Dir (41)
- Enumerator (5)
- Exception (11)
- File (11)
-
File
:: Stat (22) - Float (11)
- GDBM (11)
-
Gem
:: Requirement (11) -
Gem
:: SourceIndex (11) -
Gem
:: Specification (88) - IO (11)
- IPAddr (11)
-
JSON
:: State (55) - LoadError (11)
- Logger (74)
- Matrix (489)
-
Matrix
:: LUPDecomposition (11) - Method (11)
- Module (11)
-
Net
:: FTP (18) -
Net
:: HTTP (11) - Object (7)
-
OpenSSL
:: PKCS7 (11) -
OpenSSL
:: X509 :: Name (33) - OptionParser (55)
- Pathname (321)
- PrettyPrint (11)
- Prime (33)
-
Prime
:: EratosthenesGenerator (11) -
Prime
:: PseudoPrimeGenerator (22) -
RDoc
:: Markup (11) -
REXML
:: Attribute (33) -
REXML
:: Attributes (132) -
REXML
:: CData (33) -
REXML
:: DocType (22) -
REXML
:: Element (110) -
REXML
:: Elements (33) -
REXML
:: Entity (11) -
REXML
:: XPath (33) - Random (33)
- Range (5)
- Rational (22)
-
Rinda
:: TupleSpace (11) - Ripper (18)
- RubyVM (1)
- SDBM (22)
- Shell (54)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (24) -
Socket
:: AncillaryData (187) - String (11)
- StringIO (51)
- StringScanner (88)
- Tempfile (33)
- Thread (11)
- Time (22)
- UDPSocket (11)
-
URI
:: FTP (11) -
URI
:: Generic (22) - UnboundMethod (11)
- Vector (89)
-
WEBrick
:: BasicLog (11) -
WEBrick
:: HTTPResponse (22) -
WEBrick
:: HTTPUtils :: FormData (55) -
Win32
:: Resolv (11) -
Zlib
:: Deflate (88) -
Zlib
:: GzipReader (33) -
Zlib
:: GzipWriter (66) -
Zlib
:: Inflate (55)
モジュール
- Abbrev (11)
- Benchmark (11)
- BigMath (88)
- CMath (24)
- Enumerable (39)
-
Fiddle
:: Importer (66) - FileUtils (33)
- Forwardable (44)
- JSON (44)
-
JSON
:: Generator :: GeneratorMethods :: Array (11) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) -
JSON
:: Generator :: GeneratorMethods :: Float (11) -
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) -
JSON
:: Generator :: GeneratorMethods :: NilClass (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) - Kernel (253)
- ObjectSpace (22)
- Open3 (11)
-
OpenSSL
:: ASN1 (11) -
OpenSSL
:: OCSP (11) - Rake (11)
- SecureRandom (11)
- Syslog (11)
- TSort (50)
-
WEBrick
:: HTTPStatus (11)
オブジェクト
-
Readline
:: HISTORY (44)
キーワード
-
$ CHILD _ STATUS (11) -
$ FIELD _ SEPARATOR (11) -
$ FS (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) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
$ POSTMATCH (11) -
$ PREMATCH (11) -
$ RS (11) - << (22)
- <=> (33)
- == (11)
- === (16)
- DelegateClass (11)
- E (11)
- NotationDecl (11)
- PI (11)
-
RESPONSE
_ STATUS _ SIGREQUIRED (11) - [] (33)
- []= (6)
- abbrev (22)
- accept (22)
-
add
_ attribute (22) -
add
_ attributes (11) -
add
_ dependency (11) -
add
_ development _ dependency (11) -
add
_ element (11) -
add
_ runtime _ dependency (11) -
add
_ special (11) - all? (7)
-
allocation
_ sourcefile (11) -
allocation
_ sourceline (11) -
angle
_ with (11) - antisymmetric? (6)
- any? (7)
- application (11)
-
array
_ nl (11) - atan (11)
- attribute (11)
-
attribute
_ alias _ singular (11) -
attribute
_ of (11) -
attributes
_ of (11) - autoload (22)
-
backtrace
_ locations (11) - bind (11)
- binread (11)
- build (22)
- cat (18)
- cbrt (6)
- cbrt! (6)
- cd (6)
- chdir (6)
-
check
_ circular? (11) - children (11)
- civil (11)
- cleanpath (11)
-
cmsg
_ is? (11) -
cofactor
_ expansion (11) - collect (33)
- collect! (18)
- collect2 (11)
- column (22)
-
column
_ vectors (11) - columns (11)
- combine (7)
- concat (11)
- configure (11)
- cos (11)
- create (22)
-
create
_ header (11) -
create
_ makefile (11) -
create
_ value (11) - data (11)
-
datetime
_ format (11) -
datetime
_ format= (11) - decode (11)
-
def
_ delegator (11) -
def
_ instance _ delegator (11) -
default
_ system _ path (6) - deflate (22)
- delegate (11)
- delete (22)
-
delete
_ all (22) -
delete
_ at (11) -
delete
_ attribute (11) - diagonal (11)
- each (110)
-
each
_ attribute (11) -
each
_ byte (11) -
each
_ child (22) -
each
_ element _ with _ attribute (11) -
each
_ entry (11) -
each
_ line (44) -
each
_ strongly _ connected _ component (20) -
each
_ strongly _ connected _ component _ from (20) -
each
_ with _ index (44) - eigen (11)
- eigensystem (11)
- element (11)
- empty (11)
- empty? (8)
- eql? (11)
- exp (11)
- extern (11)
- family (11)
-
family
_ addrinfo (11) - fatal (33)
- fatal? (11)
- field? (11)
- fields (11)
- file (11)
- filename (11)
- find (10)
-
find
_ index (33) -
find
_ name (11) - finish (22)
- first (11)
- flush (11)
- fnmatch (11)
- foreach (29)
- format (11)
- formatter (11)
- generate (11)
-
generate
_ line (11) -
get
_ attribute (11) -
get
_ attribute _ ns (11) -
get
_ hosts _ path (11) -
get
_ text (11) - glob (54)
-
handle
_ interrupt (11) - head (11)
- index (33)
- inflate (22)
-
instance
_ delegate (11) - int (22)
-
ip
_ pktinfo (22) -
ipv6
_ pktinfo (22) -
ipv6
_ pktinfo _ addr (11) -
ipv6
_ pktinfo _ ifindex (11) -
json
_ creatable? (11) -
laplace
_ expansion (11) - length (11)
- level (11)
- lex (7)
-
lib
_ files (11) - lines (7)
- list (11)
- log (22)
- lup (11)
-
lup
_ decomposition (11) - magnitude (11)
- map (33)
- map! (18)
- match (11)
- match? (11)
- matched (11)
- matched? (11)
-
matched
_ size (11) - matches? (11)
- merge (11)
- minor (22)
- mkdir (18)
- mkpath (11)
- mlsd (18)
- name (11)
- namespace (11)
- namespaces (11)
- native (11)
- new (96)
- none? (7)
- norm (11)
- notify (11)
-
object
_ nl (11) - on (33)
- one? (7)
- open (44)
- pack (19)
- pack テンプレート文字列 (11)
- params (11)
- parse (22)
-
parse
_ openssl (11) - path (44)
- pathconf (11)
- pipeline (11)
- pop (11)
-
post
_ match (11) -
pre
_ match (11) - prefix (11)
- prefixes (11)
-
pretty
_ generate (11) -
pretty
_ unparse (11) -
prime
_ division (11) - printf (22)
- produce (5)
- pushdir (6)
- rand (33)
-
random
_ number (11) - read (11)
- readlines (11)
- real (11)
- real? (11)
- realdirpath (11)
- realpath (22)
- realtime (11)
-
recvfrom
_ nonblock (11) - recvmsg (11)
- regular? (11)
- relative? (22)
-
relative
_ path _ from (11) -
remove
_ entry (11) -
require
_ relative (11) -
required
_ attribute (11) -
required
_ attribute? (11) -
resolve
_ feature _ path (1) - rewind (11)
- root? (11)
- row (22)
-
satisfied
_ by? (11) -
satisfies
_ requirement? (11) - scalar (11)
-
set
_ dictionary (22) -
set
_ redirect (11) - shift (11)
- sin (11)
- size (11)
- size? (11)
-
skew
_ symmetric? (6) - slice (11)
- solve (11)
-
source
_ location (22) - split (11)
- sqrt (17)
- sqrt! (6)
-
status
_ line (11) - strptime (33)
- struct (11)
- sub (11)
-
sub
_ ext (11) -
system
_ path (6) - terminate (11)
- text (11)
-
to
_ a (22) -
to
_ ary (11) -
to
_ d (22) -
to
_ json (110) -
to
_ s (11) -
to
_ string (11) - today (11)
- tr (11)
- trace (11)
- truncate (33)
-
tsort
_ each (10) - type (11)
- union (11)
-
unix
_ rights (22) - unlink (11)
- unpack (11)
- unparse (11)
- update (33)
- uptodate? (11)
- value (22)
-
values
_ at (55) -
with
_ index (11) - wrap (22)
-
write
_ smime (11) - xmlrpc (3)
- xmlschema (11)
- xpath (11)
- yaml (11)
-
yield
_ self (7) - zero (11)
- 制御構造 (8)
検索結果
先頭5件
-
OpenSSL
:: OCSP :: RESPONSE _ STATUS _ SIGREQUIRED -> Integer (33600.0) -
OpenSSL::OCSP::Response#status のステータスコードで 、 サーバがクライアントにリクエストへの署名を要求していることを意味します。
...OpenSSL::OCSP::Response#status のステータスコードで 、
サーバがクライアントにリクエストへの署名を要求していることを意味します。
詳しくは 2560 2.3 を見てください。... -
Kernel
. # require _ relative(relative _ feature) -> bool (31247.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
. # require(feature) -> bool (30725.0) -
Ruby ライブラリ feature をロードします。拡張子補完を行い、 同じファイルの複数回ロードはしません。
...
Ruby ライブラリ feature をロードします。拡張子補完を行い、
同じファイルの複数回ロードはしません。
feature が絶対パスのときは feature からロードします。
feature が相対パスのときは組み込み変数 $:
に示されるパスを順番......また `~USER' はそのユーザのホームディレクトリに展開されます。
Ruby ライブラリとは Ruby スクリプト (*.rb) か拡張ライブラリ
(*.so,*.o,*.dll など) であり、feature の拡張子が省略された場合はその
両方から探します( *.rb が優先......ature の名前が既に $"
に含まれていた場合はロードせずに false を返します。
@param feature ファイル名の文字列です。
@raise LoadError ロードに失敗した場合に発生します。
//emlist[例][ruby]{
$LOADED_FEATURES.grep(/prime/).size # => 0
require "pr... -
Kernel
# require(path) -> bool (30639.0) -
RubyGems を require すると、Kernel#require が Gem を 要求されたときにロードするように置き換えます。
...
RubyGems を require すると、Kernel#require が Gem を
要求されたときにロードするように置き換えます。
再定義された Kernel#require を呼び出すと以下の事を行います。
Ruby のロードパスに存在するライブラリを指定した場合はその......をロードパスに登録します。
@param path ロードしたいライブラリの名前を指定します。
@return 既にロードされているライブラリを再度ロードしようとした場合は false を返します。
そうでない場合は true を返します。... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (27706.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...se_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......、self が絶対パスなら
base_directory も絶対パスでなければなりません。
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_directory から self へ......の相対パスが求められないときに例外が発生します。
//emlist[例][ruby]{
require 'pathname'
path = Pathname.new("/tmp/foo")
base = Pathname.new("/tmp")
path.relative_path_from(base) # => #<Pathname:foo>
//}... -
Gem
:: Specification # satisfies _ requirement?(dependency) -> bool (27600.0) -
この Gem パッケージが与えられた依存関係を満たすかどうかを返します。
...この Gem パッケージが与えられた依存関係を満たすかどうかを返します。
依存関係を満たす場合は真を返します。そうでない場合は偽を返します。
@param dependency チェックしたい依存関係を指定します。
@see Gem::Dependency... -
Gem
:: Specification . required _ attribute(name , default = nil) -> () (27600.0) -
必須の属性を作成します。
...必須の属性を作成します。
@param name 属性名を指定します。
@param default デフォルト値を指定します。
@see Gem::Specification.attribute... -
Gem
:: Specification . required _ attribute?(name) -> bool (27600.0) -
必須属性であれば真を返します。
...必須属性であれば真を返します。
@param name 属性名を指定します。... -
RubyVM
. resolve _ feature _ path (27528.0) -
require を呼んだときに読み込まれるファイルを特定します。 このメソッドはRuby 2.7 で $LOAD_PATH の特異メソッドに移動しました。
...require を呼んだときに読み込まれるファイルを特定します。
このメソッドはRuby 2.7 で $LOAD_PATH の特異メソッドに移動しました。
//emlist[][ruby]{
p RubyVM.resolve_feature_path('set')
# => [:rb, "/build-all-ruby/2.6.0/lib/ruby/2.6.0/set.rb"]
//}... -
Pathname
# realpath -> Pathname (21524.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...Pathname オブジェクトを返します。
また、ファイルシステムをアクセスし、実際に存在するパスを返します。
シンボリックリンクも解決されます。
self が指すパスが存在しない場合は例外 Errno::ENOENT が発生します。
@param b......dir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.......mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo")
path = Pathname.new("bar/././//foo/../bar")
Dir.chdir("/tmp")
p path.realpath
# => ruby 1.8.0 (2003-10-10) [i586-linux]
# #<Pathname:/tmp/bar>
//}
@see Pathname#realdirpath, File.realpath...