ライブラリ
クラス
- CSV (1)
-
Encoding
:: Converter (1) -
JSON
:: State (1) - Matrix (2)
- Module (1)
- Object (1)
-
OpenSSL
:: PKey :: RSA (1) -
OpenSSL
:: SSL :: SSLContext (1) -
Resolv
:: DNS :: Name (1) -
RubyVM
:: InstructionSequence (4)
モジュール
-
CGI
:: QueryExtension (1) -
File
:: Constants (1) - FileUtils (1)
- Kernel (4)
-
OpenSSL
:: ASN1 (1) -
OpenSSL
:: Buffering (2) -
OpenSSL
:: OCSP (1) -
OpenSSL
:: SSL (2) -
OpenSSL
:: X509 (1) -
Socket
:: Constants (23) -
WEBrick
:: HTTPAuth :: Authenticator (1)
キーワード
-
IFF
_ MASTER (1) -
IFF
_ NOTRAILERS (1) -
IFF
_ SLAVE (1) -
IFF
_ SUPP _ NOFCS (1) -
IPV6
_ RTHDR (1) -
IPV6
_ RTHDRDSTOPTS (1) -
IP
_ MTU (1) -
IP
_ ROUTER _ ALERT (1) -
IP
_ TOS (1) -
MSG
_ COMPAT (1) -
MSG
_ EOF (1) -
MSG
_ FLUSH (1) -
MSG
_ OOB (1) -
NI
_ NOFQDN (1) - NOFOLLOW (1)
-
OP
_ MICROSOFT _ BIG _ SSLV3 _ BUFFER (1) -
OP
_ MICROSOFT _ SESS _ ID _ BUG (1) -
REVOKED
_ STATUS _ CESSATIONOFOPERATION (1) - ResponseInfoField (1)
-
SESSION
_ CACHE _ OFF (1) -
SO
_ BROADCAST (1) -
SO
_ OOBINLINE (1) -
SO
_ PEERCRED (1) -
SO
_ PEERNAME (1) - Signer (1)
-
TCP
_ KEEPCNT (1) -
TCP
_ LINGER2 (1) -
TCP
_ NOPUSH (1) -
TCP
_ SYNCNT (1) -
TCP
_ WINDOW _ CLAMP (1) -
V
_ ERR _ OUT _ OF _ MEM (1) - autoload (2)
- autoload? (1)
-
base
_ label (1) -
check
_ signedness (2) -
cofactor
_ expansion (1) - eof (1)
- eof? (1)
-
first
_ lineno (1) -
instance
_ of? (1) - iqmp (1)
- label (1)
-
laplace
_ expansion (1) - new (2)
-
primitive
_ convert (1) -
rb
_ mod _ const _ of (1) -
rb
_ obj _ is _ instance _ of (1) -
rb
_ time _ timespec _ new (1) -
rubygems
/ commands / uninstall _ command (1) -
server
_ software (1) -
subdomain
_ of? (1) - traverse (1)
検索結果
先頭5件
- RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence - WEBrick
:: HTTPAuth :: Authenticator :: ResponseInfoField -> String - FileUtils
. options _ of(mid) -> Array - OpenSSL
:: OCSP :: REVOKED _ STATUS _ CESSATIONOFOPERATION -> Integer - Matrix
# cofactor _ expansion(row: nil , column: nil) -> object | Integer | Rational | Float
-
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (82312.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
引数 body で指定した Proc、Method オブジェクトを元に
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param body Proc、Method オブジェクトを指定します。
例1:irb で実行した場合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::InstructionSequence.of(p)
> # => <RubyVM::InstructionSequence:block in irb_binding@(irb)>
# method
> def ... -
WEBrick
:: HTTPAuth :: Authenticator :: ResponseInfoField -> String (64201.0) -
レスポンスインフォフィールドのキーの名前です。
レスポンスインフォフィールドのキーの名前です。 -
FileUtils
. options _ of(mid) -> Array (63922.0) -
与えられたメソッド名で使用可能なオプション名の配列を返します。
与えられたメソッド名で使用可能なオプション名の配列を返します。
@param mid メソッド名を指定します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options_of(:rm) # => ["noop", "verbose", "force"]
//} -
OpenSSL
:: OCSP :: REVOKED _ STATUS _ CESSATIONOFOPERATION -> Integer (63901.0) -
OpenSSL::OCSP::BasicResponse#status の失効理由コードで、 証明書の運用を止めたことを意味します。
OpenSSL::OCSP::BasicResponse#status の失効理由コードで、
証明書の運用を止めたことを意味します。
詳しくは 3280 や X.509 を参照してください。 -
Matrix
# cofactor _ expansion(row: nil , column: nil) -> object | Integer | Rational | Float (55201.0) -
row 行、もしくは column 列に関するラプラス展開をする。
row 行、もしくは column 列に関するラプラス展開をする。
通常の行列に対してはこれは単に固有値を計算するだけです。かわりにMatrix#determinant を
利用すべきです。
変則的な形状の行列に対してはそれ以上の意味を持ちます。例えば
row行/column列が行列やベクトルである場合には
//emlist[例][ruby]{
require 'matrix'
# Matrix[[7,6], [3,9]].laplace_expansion(column: 1) # => 45
Matrix[[Vector[1, 0], Vector[0, 1]], [2, 3]].... -
Object
# instance _ of?(klass) -> bool (54994.0) -
オブジェクトがクラス klass の直接のインスタンスである時真を返します。
オブジェクトがクラス klass の直接のインスタンスである時真を返します。
obj.instance_of?(c) が成立する時には、常に obj.kind_of?(c) も成立します。
@param klass Classかそのサブクラスのインスタンスです。
//emlist[][ruby]{
class C < Object
end
class S < C
end
obj = S.new
p obj.instance_of?(S) # true
p obj.instance_of?(C) # false
//}
@see Object#kind_of?... -
VALUE rb
_ obj _ is _ instance _ of(VALUE obj , VALUE klass) (54901.0) -
obj がクラス klass のインスタンスならば真。
obj がクラス klass のインスタンスならば真。 -
Socket
:: Constants :: SO _ OOBINLINE -> Integer (45949.0) -
Leave received out-of-band data in-line。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
Leave received out-of-band data in-line。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see sys/socket.h(header), getsockopt(2freebsd),
socket(7linux), Socket::Constants::SOL_SOCKET -
Matrix
# laplace _ expansion(row: nil , column: nil) -> object | Integer | Rational | Float (45901.0) -
row 行、もしくは column 列に関するラプラス展開をする。
row 行、もしくは column 列に関するラプラス展開をする。
通常の行列に対してはこれは単に固有値を計算するだけです。かわりにMatrix#determinant を
利用すべきです。
変則的な形状の行列に対してはそれ以上の意味を持ちます。例えば
row行/column列が行列やベクトルである場合には
//emlist[例][ruby]{
require 'matrix'
# Matrix[[7,6], [3,9]].laplace_expansion(column: 1) # => 45
Matrix[[Vector[1, 0], Vector[0, 1]], [2, 3]].... -
Resolv
:: DNS :: Name # subdomain _ of?(other) -> bool (45712.0) -
other が self のサブドメインであるかどうかを返します。
other が self のサブドメインであるかどうかを返します。
//emlist[][ruby]{
require "resolv"
domain = Resolv::DNS::Name.create("y.z")
p Resolv::DNS::Name.create("w.x.y.z").subdomain_of?(domain) #=> true
p Resolv::DNS::Name.create("x.y.z").subdomain_of?(domain) #=> true
p Resolv::DNS::Name.create("y.z").subdomain_of?(domai... -
OpenSSL
:: SSL :: OP _ MICROSOFT _ BIG _ SSLV3 _ BUFFER -> Integer (45601.0) -
SSL 通信での各種バグ回避コードを有効にするフラグです。
SSL 通信での各種バグ回避コードを有効にするフラグです。
OpenSSL::SSL::SSLContext#options= で利用します。
通常は OpenSSL::SSL::OP_ALL でこれらすべてを有効にします。
特定のフラグのみ無効にしたい場合は例えば
ctx.options = OP_ALL & ~OP_DONT_INSERT_EMPTY_FRAGMENTS
などとします。 -
OpenSSL
:: SSL :: OP _ MICROSOFT _ SESS _ ID _ BUG -> Integer (45601.0) -
SSL 通信での各種バグ回避コードを有効にするフラグです。
SSL 通信での各種バグ回避コードを有効にするフラグです。
OpenSSL::SSL::SSLContext#options= で利用します。
通常は OpenSSL::SSL::OP_ALL でこれらすべてを有効にします。
特定のフラグのみ無効にしたい場合は例えば
ctx.options = OP_ALL & ~OP_DONT_INSERT_EMPTY_FRAGMENTS
などとします。 -
OpenSSL
:: SSL :: SSLContext :: SESSION _ CACHE _ OFF -> Integer (45601.0) -
セッションをキャッシュしないことを意味します。
セッションをキャッシュしないことを意味します。
OpenSSL::SSL::SSLContext#session_cache_mode= に
渡すフラグとして用います。 -
Socket
:: Constants :: IFF _ SUPP _ NOFCS (45601.0) -
sending custom FCS
sending custom FCS -
Socket
:: Constants :: NI _ NOFQDN -> Integer (45601.0) -
An FQDN is not required for local hosts, return only the local part.
An FQDN is not required for local hosts, return only the local part.
Socket.getnameinfo, Addrinfo#getnameinfo の引数 flags に渡す
定数です。
@see getnameinfo(3) -
RubyVM
:: InstructionSequence # first _ lineno -> Integer (45319.0) -
self が表す命令シーケンスの 1 行目の行番号を返します。
self が表す命令シーケンスの 1 行目の行番号を返します。
例1:irb で実行した場合
RubyVM::InstructionSequence.compile('num = 1 + 2').first_lineno
# => 1
例2:
# /tmp/method.rb
require "foo-library"
def foo
p :foo
end
RubyVM::InstructionSequence.of(method(:foo)).first_lineno
# => 2 -
VALUE rb
_ time _ timespec _ new(const struct timespec *ts , int offset) (37501.0) -
引数 ts、offset を元に Time オブジェクトを作成して返します。
引数 ts、offset を元に Time オブジェクトを作成して返します。
@param ts timespec 構造体のポインタ
@param offset 協定世界時との時差(秒)。
-86400 < offset < 86400 の場合は指定した時差に、INT_MAX
を指定した場合は地方時、INT_MAX-1 を指定した場合は UTC に
なります。
@raise ArgumentError offset に上述の範囲以外の値を指定した場合に発生し
ま... -
void * rb
_ mod _ const _ of(VALUE mod , void *data) (37201.0) -
-
CGI
:: QueryExtension # server _ software -> String (36601.0) -
ENV['SERVER_SOFTWARE'] を返します。
ENV['SERVER_SOFTWARE'] を返します。 -
File
:: Constants :: NOFOLLOW -> Integer (36601.0) -
ファイルがシンボリックリンクであった場合に 例外を発生させます。 open(2) で O_NOFOLLOW が指定できる場合に使えます。 File.openで使用します。
ファイルがシンボリックリンクであった場合に
例外を発生させます。
open(2) で O_NOFOLLOW が指定できる場合に使えます。
File.openで使用します。 -
OpenSSL
:: Buffering # eof -> bool (36301.0) -
相手からの通信が終端に達したら true を返します。
相手からの通信が終端に達したら true を返します。
IO#eof? と同様です。 -
OpenSSL
:: Buffering # eof? -> bool (36301.0) -
相手からの通信が終端に達したら true を返します。
相手からの通信が終端に達したら true を返します。
IO#eof? と同様です。 -
rubygems
/ commands / uninstall _ command (36073.0) -
Gem パッケージをアンインストールするためのライブラリです。
Gem パッケージをアンインストールするためのライブラリです。
Usage: gem uninstall GEMNAME [GEMNAME ...] [options]
Options:
-a, --[no-]all Uninstall all matching versions
-I, --[no-]ignore-dependencies Ignore dependency requirements while
uninstalling
-x, --... -
OpenSSL
:: PKey :: RSA # iqmp -> OpenSSL :: BN (27649.0) -
鍵の coefficient (inverse of q mod p) です。
鍵の coefficient (inverse of q mod p) です。
秘密鍵の情報です。 -
Socket
:: Constants :: TCP _ LINGER2 -> Integer (27649.0) -
Lifetime of orphaned FIN_WAIT2 sockets。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
Lifetime of orphaned FIN_WAIT2 sockets。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see tcp(7linux) -
Socket
:: Constants :: TCP _ WINDOW _ CLAMP -> Integer (27649.0) -
Clamp the size of the advertised window。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
Clamp the size of the advertised window。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see tcp(7linux) -
OpenSSL
:: X509 :: V _ ERR _ OUT _ OF _ MEM -> Integer (27604.0) -
メモリが不足したことを意味します。
メモリが不足したことを意味します。
OpenSSL::X509::Store#error や
OpenSSL::X509::StoreContext#error のエラーコードとして
使われます。 -
Socket
:: Constants :: MSG _ EOF -> Integer (27601.0) -
Data completes connection。
Data completes connection。
BasicSocket#send, BasicSocket#sendmsg,
BasicSocket#recv, BasicSocket#recvmsg の
flags 引数に用います。
@see send(2freebsd) -
Socket
:: Constants :: IFF _ MASTER (27349.0) -
master of a load balancer
master of a load balancer -
Socket
:: Constants :: IFF _ NOTRAILERS (27349.0) -
avoid use of trailers
avoid use of trailers -
Socket
:: Constants :: IFF _ SLAVE (27349.0) -
slave of a load balancer
slave of a load balancer -
Socket
:: Constants :: IPV6 _ RTHDR -> Integer (27349.0) -
Allows removal of sticky routing headers。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
Allows removal of sticky routing headers。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see Socket::Constants::IPPROTO_IPV6,
3542 -
Socket
:: Constants :: IPV6 _ RTHDRDSTOPTS -> Integer (27349.0) -
Allows removal of sticky destination options header。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
Allows removal of sticky destination options header。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see Socket::Constants::IPPROTO_IPV6,
3542 -
Socket
:: Constants :: IP _ MTU -> Integer (27349.0) -
The Maximum Transmission Unit of the socket。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
The Maximum Transmission Unit of the socket。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see Socket::Constants::IPPROTO_IP, ip(7linux) -
Socket
:: Constants :: IP _ ROUTER _ ALERT -> Integer (27349.0) -
Notify transit routers to more closely examine the contents of an IP packet。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
Notify transit routers to more closely examine the contents of an IP packet。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see Socket::Constants::IPPROTO_IP, ip(7linux) -
Socket
:: Constants :: IP _ TOS -> Integer (27349.0) -
IP type-of-service。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
IP type-of-service。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see Socket::Constants::IPPROTO_IP,
ip(4freebsd), ip(7linux) -
RubyVM
:: InstructionSequence # base _ label -> String (27319.0) -
self が表す命令シーケンスの基本ラベルを返します。
self が表す命令シーケンスの基本ラベルを返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "h... -
RubyVM
:: InstructionSequence # label -> String (27319.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、
モジュール名などで構成されます。
トップレベルでは "<main>" を返します。self を文字列から作成していた場合
は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例2: R... -
OpenSSL
:: PKCS7 :: Signer (27049.0) -
Alias of OpenSSL::PKCS7::SignerInfo
Alias of OpenSSL::PKCS7::SignerInfo -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (19393.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... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) { . . . } -> "signed" | "unsigned" | nil (19393.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... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize , options) -> Symbol (18919.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
可搬性を確保しつつ、不正なバイトや変換先で未定義な文字の扱いを細かに指定したいときは、Encoding::Converter#primitive_convert が唯一の方法になります。
@param source_buffer 変換元文字列のバッファ
@param destination_buffer 変換先文字列を格納するバッファ
@param destination_byteoffset 変換先バッファでのオフセット
@param destination_bytesize 変換先バッファの容量
@... -
OpenSSL
:: ASN1 . # traverse(der) {|depth , off , hlen , len , constructed , tag _ class , tag| . . . } -> nil (9901.0) -
DER形式の文字列を解析し、そこに含まれる ASN.1 の値 のプロパティを引数として与えられたブロックを呼びだします。
DER形式の文字列を解析し、そこに含まれる ASN.1 の値
のプロパティを引数として与えられたブロックを呼びだします。
OpenSSL::ASN1.#decode_all のように、文字列に含まれる
全ての ASN.1 オブジェクトのインスタンスを解析します。
ブロックに渡される引数は以下の通りです。
* depth: 再帰の深さ
* off: 対象の値をエンコードした文字列の der の先頭からのオフセット
* hlen: エンコードされたデータのヘッダのバイト数
* len: エンコードされたデータの値フィールドのバイト数
* constructed:対象の AS... -
Socket
:: Constants :: MSG _ COMPAT -> Integer (9349.0) -
@todo End of record
@todo
End of record -
Socket
:: Constants :: MSG _ FLUSH -> Integer (9349.0) -
@todo Start of a hold sequence. Dumps to so_temp
@todo
Start of a hold sequence. Dumps to so_temp -
Socket
:: Constants :: MSG _ OOB -> Integer (9349.0) -
Process out-of-band data。
Process out-of-band data。
BasicSocket#send, BasicSocket#sendmsg,
BasicSocket#recv, BasicSocket#recvmsg の
flags 引数に用います。
@see sys/socket.h(header),
send(2), sendto(2), sendmsg(2),
recv(2), recvfrom(2), recvmsg(2),
send(2linux), recv(2linux),
send(2freebsd), recv(2freebsd) -
Socket
:: Constants :: SO _ BROADCAST -> Integer (9349.0) -
Permit sending of broadcast messages。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
Permit sending of broadcast messages。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see sys/socket.h(header), getsockopt(2freebsd),
socket(7linux), Socket::Constants::SOL_SOCKET -
Socket
:: Constants :: SO _ PEERCRED -> Integer (9349.0) -
The credentials of the foreign process connected to this socket。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
The credentials of the foreign process connected to this socket。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see socket(7linux), unix(7linux), socketpair(2linux),
Socket::Constants::SOL_SOCKET -
Socket
:: Constants :: SO _ PEERNAME -> Integer (9349.0) -
@todo Name of the connecting user。
@todo
Name of the connecting user。 -
Socket
:: Constants :: TCP _ KEEPCNT -> Integer (9349.0) -
Maximum number of keepalive probes allowed before dropping a connection。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
Maximum number of keepalive probes allowed before dropping a connection。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see tcp(7linux) -
Socket
:: Constants :: TCP _ NOPUSH -> Integer (9349.0) -
Don't push the last block of write。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
Don't push the last block of write。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see tcp(4freebsd), tcp(7linux) -
Socket
:: Constants :: TCP _ SYNCNT -> Integer (9349.0) -
Number of SYN retransmits before a connection is dropped。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
Number of SYN retransmits before a connection is dropped。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see tcp(7linux) -
Module
# autoload(const _ name , feature) -> nil (655.0) -
定数 const_name を最初に参照した時に feature を Kernel.#require するように設定します。
定数 const_name を最初に参照した時に feature を Kernel.#require するように設定します。
const_name が autoload 設定されていて、まだ定義されてない(ロードされていない)ときは、
autoload する対象を置き換えます。
const_name が(autoloadではなく)既に定義されているときは何もしません。
@param const_name String または Symbol で指定します。
なお、const_name には、"::" 演算子を含めることはできません。
つまり、self の直下に定... -
CSV
. new(data , options = Hash . new) -> CSV (619.0) -
このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。
このメソッドは CSV ファイルを読み込んだり、書き出したりするために
String か IO のインスタンスをラップします。
ラップされた文字列の先頭から読み込むことになります。
文字列に追記したい場合は CSV.generate を使用してください。
他の位置から処理したい場合はあらかじめそのように設定した StringIO を渡してください。
@param data String か IO のインスタンスを指定します。
String のインスタンスを指定した場合、CSV#string を使用して
後からデータを取り出すことが出来ます。... -
JSON
:: State . new(options = {}) -> JSON :: State (619.0) -
自身を初期化します。
自身を初期化します。
@param options ハッシュを指定します。
指定可能なオプションは以下の通りです。
: :indent
インデントに使用する文字列を指定します。デフォルトは空文字列です。
: :space
JSON 形式の文字列のトークン間に挿入する文字列を指定します。デフォルトは空文字列です。
: :space_before
JSON 形式の文字列中で JavaScript のオブジェクトを表す部分にある ':' の
前に挿入する文字列をセットします。デフォルトは空文字列です。
: :object_nl
JSON 形式の文字列中に現れる... -
Kernel
. # autoload(const _ name , feature) -> nil (619.0) -
定数 const_name を最初に参照した時に feature を Kernel.#require するように設定します。
定数 const_name を最初に参照した時に feature を
Kernel.#require するように設定します。
const_name には、 "::" 演算子を含めることはできません。
ネストした定数を指定する方法は Module#autoload を参照してください。
const_name が autoload 設定されていて、まだ定義されてない(ロードされていない)ときは、
autoload する対象を置き換えます。
const_name が(autoloadではなく)既に定義されているときは何もしません。
@param const_name 定数をString また... -
Kernel
. # autoload?(const _ name) -> String | nil (619.0) -
const_name が Kernel.#autoload 設定されているか調べます。
const_name が Kernel.#autoload 設定されているか調べます。
autoload 設定されていて、autoload 定数がまだ定義されてない(ロードされていない)
ときにそのパス名を返します。
autoload 設定されていないか、ロード済みなら nil を返します。
@param const_name 定数をString または Symbol で指定します。
//emlist[例][ruby]{
# ------- /tmp/foo.rb ---------
class Foo
class Bar
end
end
# ----- end of /tm...