ライブラリ
- ビルトイン (42)
- benchmark (1)
-
cgi
/ core (2) -
cgi
/ html (9) -
cgi
/ session (1) - csv (5)
- date (1)
- drb (2)
-
drb
/ timeridconv (2) - etc (6)
- fiddle (38)
-
fiddle
/ import (13) -
irb
/ cmd / subirb (2) -
irb
/ extend-command (1) -
irb
/ frame (1) - mkmf (1)
-
net
/ ftp (3) -
net
/ imap (13) -
net
/ pop (2) - openssl (28)
- optparse (4)
- pathname (3)
- prettyprint (4)
- psych (2)
-
rexml
/ document (9) -
rexml
/ sax2listener (1) - rss (21)
-
rubygems
/ indexer (1) -
rubygems
/ package / tar _ header (2) -
rubygems
/ specification (1) -
rubygems
/ timer (1) -
rubygems
/ validator (5) - scanf (2)
- set (2)
- shell (3)
-
shell
/ command-processor (3) -
shell
/ filter (3) - socket (1)
- stringio (1)
- tracer (1)
- tsort (2)
- win32ole (11)
クラス
- Array (3)
- BasicObject (1)
- BasicSocket (1)
-
Benchmark
:: Job (1) -
CGI
:: Session (1) - CSV (3)
-
CSV
:: Table (2) -
DRb
:: DRbIdConv (2) -
DRb
:: TimerIdConv (2) - Date (1)
-
Encoding
:: InvalidByteSequenceError (7) - Enumerator (1)
-
Etc
:: Group (2) -
Etc
:: Passwd (4) -
Fiddle
:: CStruct (2) -
Fiddle
:: Closure (3) -
Fiddle
:: Closure :: BlockCaller (1) -
Fiddle
:: Function (5) -
Fiddle
:: Handle (4) -
Fiddle
:: Pointer (25) -
File
:: Stat (7) -
Gem
:: Indexer (1) -
Gem
:: Package :: TarHeader (2) -
Gem
:: Specification (1) -
Gem
:: Validator (5) - Hash (2)
- IO (1)
-
IRB
:: ExtendCommand :: Foreground (1) -
IRB
:: ExtendCommand :: Kill (1) -
IRB
:: Frame (1) - Module (5)
-
Net
:: FTP (1) -
Net
:: FTP :: MLSxEntry (2) -
Net
:: IMAP (9) -
Net
:: IMAP :: BodyTypeBasic (1) -
Net
:: IMAP :: BodyTypeMessage (1) -
Net
:: IMAP :: BodyTypeText (1) -
Net
:: IMAP :: Envelope (1) -
Net
:: POPMail (2) - Object (3)
-
OpenSSL
:: ASN1 :: ObjectId (5) -
OpenSSL
:: Engine (4) -
OpenSSL
:: OCSP :: BasicResponse (2) -
OpenSSL
:: OCSP :: CertificateId (3) -
OpenSSL
:: OCSP :: Request (2) -
OpenSSL
:: SSL :: SSLContext (4) -
OpenSSL
:: SSL :: Session (1) -
OpenSSL
:: X509 :: Attribute (2) -
OpenSSL
:: X509 :: Extension (2) -
OpenSSL
:: X509 :: ExtensionFactory (2) -
OpenSSL
:: X509 :: Name (1) - OptionParser (4)
- Pathname (3)
- PrettyPrint (4)
-
Process
:: Status (1) -
Psych
:: Emitter (2) -
RDoc
:: Options (1) -
REXML
:: DocType (2) -
REXML
:: Element (2) -
REXML
:: Elements (2) -
REXML
:: Entity (1) -
REXML
:: Formatters :: Pretty (2) -
RSS
:: ImageItemModel :: ImageItem (4) -
RSS
:: Maker :: ImageBase (2) -
RSS
:: Maker :: ItemsBase :: ItemBase (1) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid (4) -
RSS
:: Parser (2) -
RSS
:: Rss :: Channel :: Image (2) -
RSS
:: Rss :: Channel :: Item (2) -
RSS
:: Rss :: Channel :: Item :: Guid (1) -
Scanf
:: FormatSpecifier (2) - Set (2)
- Shell (3)
-
Shell
:: CommandProcessor (3) -
Shell
:: Filter (3) - String (6)
- StringIO (1)
- Symbol (2)
- Time (1)
- TracePoint (2)
- Tracer (1)
- WIN32OLE (5)
-
WIN32OLE
_ EVENT (1) -
WIN32OLE
_ METHOD (1) -
WIN32OLE
_ TYPE (3) -
WIN32OLE
_ TYPELIB (1)
モジュール
-
CGI
:: HtmlExtension (9) -
CGI
:: QueryExtension (1) -
CGI
:: QueryExtension :: Value (1) - DublinCoreModel (3)
-
Fiddle
:: Importer (11) -
IRB
:: ExtendCommandBundle (1) - Kernel (2)
-
REXML
:: SAX2Listener (1) - TSort (2)
キーワード
- + (1)
- +@ (1)
- - (1)
- -@ (1)
- <=> (1)
- == (1)
- [] (6)
- []= (2)
-
_ _ id _ _ (1) -
_ getproperty (1) -
_ invoke (1) -
_ setproperty (1) - abi (1)
-
add
_ certid (1) -
add
_ entry (1) -
add
_ status (1) - alien (1)
- args (1)
- bind (1)
- breakable (1)
- call (2)
-
callee
_ id (1) - center (1)
- certid (1)
- cleanpath (1)
- clone (1)
- close (1)
- cmp (1)
-
cmp
_ issuer (1) -
col
_ sep (1) -
compare
_ by _ identity (1) -
compare
_ by _ identity? (1) -
const
_ missing (1) - content (1)
- content= (1)
-
content
_ id (3) -
create
_ ext (1) -
create
_ extension (1) -
create
_ value (1) - ctype (1)
-
dc
_ identifier (1) -
dc
_ identifier= (1) -
dc
_ identifiers (1) - delete (1)
-
delete
_ element (1) -
delete
_ if (2) -
destination
_ encoding (1) -
destination
_ encoding _ name (1) - dig (1)
-
dir
_ config (1) - dispid (1)
- divide (2)
- dlload (1)
-
do
_ validate (1) -
do
_ validate= (1) -
each
_ element _ with _ attribute (1) -
each
_ strongly _ connected _ component _ from (2) - eql? (1)
- equal? (1)
-
error
_ bytes (1) - executable? (1)
-
executable
_ real? (1) - execute (2)
- extern (1)
-
external
_ id (1) - facts (1)
- fill (2)
- free (1)
- free= (1)
- friday? (2)
- getpeereid (1)
- gid (4)
- gid= (2)
- group (1)
- grpowned? (1)
- guid (4)
- guid= (1)
- handler= (1)
- helpcontext (1)
- hidden (2)
- id2name (1)
- identical? (3)
- idle (1)
-
idle
_ done (1) -
image
_ width (1) -
image
_ width= (1) - img (1)
-
import
_ symbol (1) -
incomplete
_ input? (1) - inspect (1)
-
install
_ alias _ method (1) - intern (1)
- isPermaLink (2)
- isPermaLink= (1)
- itself (1)
-
line
_ width (1) -
line
_ width= (1) - ljust (1)
- ln (1)
-
load
_ private _ key (1) -
load
_ public _ key (1) -
long
_ name (1) - maxwidth (1)
-
method
_ id (1) -
method
_ missing (1) -
mid
_ match? (1) - name (3)
- notationdecl (1)
- null? (1)
-
object
_ id (1) - oid (3)
- oid= (2)
-
ole
_ query _ interface (1) - paranoid (1)
- pid (4)
- progid (1)
- ptr (2)
- pubid (1)
-
public
_ instance _ method (1) - puts (1)
-
readagain
_ bytes (1) - ref (1)
-
remote
_ ident (1) -
remove
_ leading _ dot _ dir (1) - reset (2)
- rjust (1)
- serial (1)
-
session
_ get _ cb= (1) -
session
_ id (1) -
session
_ id _ context (1) -
session
_ id _ context= (1) -
set
_ params (1) - setgid? (5)
- setuid? (5)
-
short
_ name (1) - size (1)
- size= (1)
- sizeof (1)
- sn (1)
-
source
_ encoding (1) -
source
_ encoding _ name (1) - status (1)
- struct (1)
- submit (2)
- summarize (2)
-
summary
_ width (1) -
summary
_ width= (1) - sym (1)
-
tab
_ width (1) - text (1)
- time (1)
-
to
_ i (5) -
to
_ id (2) -
to
_ int (1) -
to
_ obj (2) -
to
_ ptr (1) -
to
_ s (4) -
to
_ str (2) -
to
_ sym (1) -
to
_ value (1) -
trace
_ func (2) - typealias (1)
- uid (3)
- uid= (1)
-
uid
_ copy (1) -
uid
_ fetch (1) -
uid
_ move (1) -
uid
_ search (1) -
uid
_ sort (1) -
uid
_ store (1) -
uid
_ thread (1) - uidl (1)
- union (1)
- unique (1)
-
unique
_ id (1) -
unit
_ test (1) -
valid
_ encoding? (1) - validate (1)
- value (1)
-
verify
_ gem (1) -
verify
_ gem _ file (1) - voidcmd (1)
- width (6)
- width= (4)
-
with
_ index (1)
検索結果
先頭5件
-
OpenSSL
:: SSL :: Session # id -> String (54673.0) -
セッション ID を返します。
セッション ID を返します。
SSL/TLS はこのセッション ID でセッションを識別します。 -
OpenSSL
:: Engine # id -> String (54607.0) -
engine の識別子を文字列で返します。
engine の識別子を文字列で返します。
@see OpenSSL::Engine#name -
OpenSSL
:: SSL :: SSLContext # session _ id _ context=(id _ context) (46420.0) -
セッション ID コンテキストを文字列で設定します。
セッション ID コンテキストを文字列で設定します。
セッション ID コンテキストは、セッションをグループ化するための
識別子で、セッション ID コンテキストとセッション ID の両方が
一致する場合に同一のセッションであると判別されます。
この OpenSSL::SSL::SSLContext オブジェクトで
生成されたコネクション(OpenSSL::SSL::SSLSocket)に
関連付けられたセッションはセッション ID コンテキスト
を共有します。
セッション ID コンテキストはセッションのグループを
識別するための識別子であり、一方セッション ID は各セッションを
識別... -
OpenSSL
:: X509 :: ExtensionFactory # create _ extension(oid , value , critical=false) -> OpenSSL :: X509 :: Extension (46204.0) -
OpenSSL::X509::Extension のインスタンスを生成して返します。
OpenSSL::X509::Extension のインスタンスを生成して返します。
引数の個数が1個である場合、それが配列、ハッシュ、文字列のいずれかである
ならば、
OpenSSL::X509::ExtensionFactory#create_ext_from_array、
OpenSSL::X509::ExtensionFactory#create_ext_from_hash、
OpenSSL::X509::ExtensionFactory#create_ext_from_string、
がそれぞれ呼びだされてオブジェクトを生成します。
引数が2個以上である場合は、
OpenSSL:... -
OpenSSL
:: SSL :: SSLContext # session _ id _ context -> String | nil (45673.0) -
セッション ID コンテキスト文字列を返します。
セッション ID コンテキスト文字列を返します。
設定されていない場合は nil を返します。
@see OpenSSL::SSL::Session,
OpenSSL::SSL::SSLContext#session_id_context= -
DRb
:: DRbIdConv # to _ id(obj) -> Integer (45607.0) -
オブジェクトを識別子に変換します。
オブジェクトを識別子に変換します。 -
DRb
:: TimerIdConv # to _ id(obj) -> Integer (45607.0) -
オブジェクトを識別子に変換します。
オブジェクトを識別子に変換します。 -
CGI
:: QueryExtension # remote _ ident -> String (45604.0) -
ENV['REMOTE_IDENT'] を返します。
ENV['REMOTE_IDENT'] を返します。 -
REXML
:: Formatters :: Pretty # width -> Integer (45604.0) -
出力のページ幅を返します。
出力のページ幅を返します。
デフォルトは80です。
@see REXML::Formatters::Pretty#width= -
REXML
:: Formatters :: Pretty # width=(w) (45604.0) -
出力のページ幅を設定します。
出力のページ幅を設定します。
@param w ページ幅の設定値
@see REXML::Formatters::Pretty#width -
RSS
:: ImageItemModel :: ImageItem # image _ width (45604.0) -
@todo
@todo -
RSS
:: ImageItemModel :: ImageItem # image _ width= (45604.0) -
@todo
@todo -
RSS
:: ImageItemModel :: ImageItem # width (45604.0) -
@todo
@todo -
RSS
:: ImageItemModel :: ImageItem # width= (45604.0) -
@todo
@todo -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid # content (45304.0) -
@todo
@todo -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid # content=() (45304.0) -
@todo
@todo -
Net
:: IMAP # uid _ thread(algorithm , search _ keys , charset) -> [Net :: IMAP :: ThreadMember] (37204.0) -
THREADコマンドを送り、メールボックスを検索した結果を スレッド形式の木構造で返します。
THREADコマンドを送り、メールボックスを検索した結果を
スレッド形式の木構造で返します。
ほぼ Net::IMAP#thread と同じですが、返ってくるオブジェクトの
Net::IMAP::ThreadMember#seqno の内容が message sequence number
ではなく UID となります。
@param algorithm スレッド構造構築アルゴリズム名(文字列)
@param search_key 検索条件(文字列配列)
@param charset 検索条件の解釈に用いるCHARSET名(文字列)
@see Net::IMAP::ThreadMember... -
OpenSSL
:: OCSP :: Request # certid -> [OpenSSL :: OCSP :: CertificateId] (37204.0) -
Request オブジェクトが保持している問い合わせ対象の証明書の情報を 配列で返します。
Request オブジェクトが保持している問い合わせ対象の証明書の情報を
配列で返します。
@see OpenSSL::OCSP::Request#add_certid -
OptionParser
# summary _ width=(width) (37204.0) -
サマリを表示するときの幅を整数で指定します。
サマリを表示するときの幅を整数で指定します。
@param width サマリを表示するときの幅を整数で指定します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summary_width # => 32
opts.summarize
# => [" -i, --init\n"... -
Psych
:: Emitter # line _ width=(width) (37204.0) -
「好ましい」行幅を整数値で設定します。
「好ましい」行幅を整数値で設定します。
@param width 好ましい行幅
@see Psych::Emitter#line_width -
Net
:: IMAP # uid _ fetch(set , attr) -> [Net :: IMAP :: FetchData] (36904.0) -
UID FETCH コマンドを送り、メールボックス内のメッセージに 関するデータを取得します。
UID FETCH コマンドを送り、メールボックス内のメッセージに
関するデータを取得します。
Net::IMAP#examine もしくは Net::IMAP#select で
指定したメールボックスを対象とします。
set で対象とするメッセージを指定します。
これには UID、UID の配列、もしくは
Range オブジェクトを渡します。
attr には取得するアトリビュートを文字列の配列で渡してください。
指定可能なアトリビュートについては Net::IMAP::FetchData#attr
を見てください。
@param set 処理対象のメッセージの UID
@param... -
OpenSSL
:: OCSP :: Request # add _ certid(cid) -> self (36904.0) -
Request オブジェクトに問い合わせ対象の証明書情報を追加します。
Request オブジェクトに問い合わせ対象の証明書情報を追加します。
証明書情報は OpenSSL::OCSP::CertificateId の形で渡す必要があります。
@param cid 問い合わせ対象の証明書情報(OpenSSL::OCSP::CertificateId オブジェクト)
@raise OpenSSL::OCSP::OCSPError 追加に失敗した場合に発生します。
@see OpenSSL::OCSP::Request#certid -
Object
# object _ id -> Integer (36823.0) -
各オブジェクトに対して一意な整数を返します。あるオブジェクトに対し てどのような整数が割り当てられるかは不定です。
各オブジェクトに対して一意な整数を返します。あるオブジェクトに対し
てどのような整数が割り当てられるかは不定です。
Rubyでは、(Garbage Collectされていない)アクティブなオブジェクト間で
重複しない整数(object_id)が各オブジェクトにひとつずつ割り当てられています。この
メソッドはその値を返します。
TrueClass, FalseClass, NilClass, Symbol, Integer クラス
のインスタンスなど Immutable(変更不可)なオブジェクトの一部は同じ内容ならば必ず同じ object_id になります。
これは、Immutable ... -
TracePoint
# method _ id -> Symbol | nil (36661.0) -
イベントが発生したメソッドの定義時の名前を Symbol で返します。 トップレベルであった場合は nil を返します。
イベントが発生したメソッドの定義時の名前を Symbol で返します。
トップレベルであった場合は nil を返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[][ruby]{
class C
def method_name
end
alias alias_name method_name
end
trace = TracePoint.new(:call) do |tp|
p [tp.method_id, tp.callee_id] # => [:method_name, :alias_name]
e... -
Net
:: IMAP :: BodyTypeBasic # content _ id -> String | nil (36655.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeMessage # content _ id -> String | nil (36655.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeText # content _ id -> String | nil (36655.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
REXML
:: DocType # external _ id -> String | nil (36643.0) -
DTD が外部サブセットを用いている場合は "SYSTEM", "PUBLIC" の いずれかの文字列を返します。
DTD が外部サブセットを用いている場合は "SYSTEM", "PUBLIC" の
いずれかの文字列を返します。
それ以外の場合は nil を返します。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
EOS
doctype.... -
Hash
# compare _ by _ identity -> self (36622.0) -
ハッシュのキーの一致判定をオブジェクトの同一性で判定するように変更します。
ハッシュのキーの一致判定をオブジェクトの同一性で判定するように変更します。
デフォルトでは、キーのオブジェクトによっては内容が同じならキーが一致しているとみなされますが、より厳密に
Object#object_idが一致しているかどうかを条件とするようにselfを変更します。
selfが変化する破壊的メソッドです。
@return selfを返します。
//emlist[例][ruby]{
h1 = { "a" => 100, "b" => 200, :c => "c" }
p h1.compare_by_identity? #=> false
p h1["a"] #=... -
BasicSocket
# getpeereid -> [Integer , Integer] (36604.0) -
Unix ドメインソケットにおいて接続相手の euid と egid を 返します。
Unix ドメインソケットにおいて接続相手の euid と egid を
返します。
配列の最初の要素が euid, 2番目の要素が egid です。
ソケットが Unix ドメインソケットでない場合の返り値は
不定です。
require 'socket'
Socket.unix_server_loop("/tmp/sock") {|s|
begin
euid, egid = s.getpeereid
# Check the connected client is myself or not.
next if euid ... -
Benchmark
:: Job # width -> Integer (36604.0) -
Benchmark::Job#list のサイズ。
Benchmark::Job#list のサイズ。 -
DublinCoreModel
# dc _ identifier (36604.0) -
@todo
@todo -
DublinCoreModel
# dc _ identifier= (36604.0) -
@todo
@todo -
DublinCoreModel
# dc _ identifiers (36604.0) -
@todo
@todo -
Encoding
:: InvalidByteSequenceError # destination _ encoding -> Encoding (36604.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#source_encoding,
Encoding::UndefinedConversionError#destination_encoding -
Encoding
:: InvalidByteSequenceError # destination _ encoding _ name -> String (36604.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#destination_encoding -
Fiddle
:: CStruct # to _ ptr -> Fiddle :: Pointer (36604.0) -
保持している構造体へのポインタを返します。
保持している構造体へのポインタを返します。 -
Fiddle
:: Importer # create _ value(type , val = nil) -> Fiddle :: CStruct (36604.0) -
型が type で要素名が "value" であるような構造体を 定義(Fiddle::Importer#struct)し、 その構造体のメモリを Fiddle::CStruct#malloc で確保し、 確保したメモリを保持しているオブジェクトを返します。
型が type で要素名が "value" であるような構造体を
定義(Fiddle::Importer#struct)し、
その構造体のメモリを Fiddle::CStruct#malloc で確保し、
確保したメモリを保持しているオブジェクトを返します。
type は "int", "void*" といった文字列で型を指定します。
val に nil 以外を指定すると、確保された構造体に
その値を代入します。
@param type 型を表す文字列
@param val 構造体に確保される初期値
例
require 'fiddle/import'
module M
... -
Fiddle
:: Importer # extern(signature , *opts) -> Fiddle :: Function (36604.0) -
Fiddle::Importer#dlload で取り込んだライブラリから C の関数をインポートします。
Fiddle::Importer#dlload で取り込んだライブラリから
C の関数をインポートします。
インポートした関数はそのモジュールにモジュール関数として定義されます。
signature で関数の名前とシネグチャを指定します。例えば
"int strcmp(char*, char*)" のように指定することができます。
opts には :stdcall もしくは :cdecl を渡すことができ、
呼出規約を明示することができます。
@return インポートした関数を表す Fiddle::Function オブジェクトを返します。
@param signature 関数... -
File
:: Stat # setgid? -> bool (36604.0) -
setgidされている時に真を返します。
setgidされている時に真を返します。
//emlist[][ruby]{
Dir.glob("/usr/sbin/*") {|bd|
if File::Stat.new(bd).setgid?
puts bd
end
}
#例
#...
#=> /usr/sbin/postqueue
#...
//} -
File
:: Stat # setuid? -> bool (36604.0) -
setuidされている時に真を返します。
setuidされている時に真を返します。
//emlist[][ruby]{
Dir.glob("/bin/*") {|bd|
if File::Stat.new(bd).setuid?
puts bd
end
}
#例
#...
#=> /bin/ping
#=> /bin/su
#...
//} -
Gem
:: Specification # validate -> bool (36604.0) -
必須属性のチェックと自身の基本的な正当性チェックを行います。
必須属性のチェックと自身の基本的な正当性チェックを行います。
チェックにパスした場合は常に true を返します。そうでない場合は例外が発生します。
@raise Gem::InvalidSpecificationException チェックにパスしなかった場合に発生します。 -
Hash
# compare _ by _ identity? -> bool (36604.0) -
ハッシュがキーの一致判定をオブジェクトの同一性を用いて行っているならば真を返します。
ハッシュがキーの一致判定をオブジェクトの同一性を用いて行っているならば真を返します。
//emlist[例][ruby]{
h1 = {}
p h1.compare_by_identity? #=> false
h1.compare_by_identity
p h1.compare_by_identity? #=> true
//}
@see Hash#compare_by_identity -
Net
:: IMAP # uid _ store(set , attr , flags) -> [Net :: IMAP :: FetchData] | nil (36604.0) -
UID STORE コマンドを送り、メールボックス内のメッセージを 更新します。
UID STORE コマンドを送り、メールボックス内のメッセージを
更新します。
set で更新するメッセージを指定します。
これには UID、UID の配列、もしくは
Range オブジェクトを渡します。
Net::IMAP#select で指定したメールボックスを対象とします。
attr で何をどのように変化させるかを指定します。
以下を指定することができます。
* "FLAGS"
* "+FLAGS"
* "-FLAGS"
それぞれメッセージのフラグの置き換え、追加、削除を意味します。
詳しくは 2060 の 6.4.6 を参考にしてください。
返り値は更新された内... -
OpenSSL
:: ASN1 :: ObjectId # oid -> String (36604.0) -
オブジェクト識別子のドット区切り数値を文字列で返します。
オブジェクト識別子のドット区切り数値を文字列で返します。
例:
require "openssl"
oid = OpenSSL::ASN1::ObjectId.new("subjectAltName")
p oid.oid #=> "2.5.29.17"
@raise OpenSSL::ASN1::ASN1Error オブジェクト識別子名が未知である場合に発生します -
OptionParser
# summary _ width -> Integer (36604.0) -
サマリを表示するときの幅を整数で返します。
サマリを表示するときの幅を整数で返します。
@return サマリを表示するときの幅を整数で返します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summary_width # => 32
opts.summarize
# => [" -i, --init\n", " ... -
Pathname
# setgid? -> bool (36604.0) -
FileTest.setgid?(self.to_s) と同じです。
FileTest.setgid?(self.to_s) と同じです。
@see FileTest.#setgid? -
Pathname
# setuid? -> bool (36604.0) -
FileTest.setuid?(self.to_s) と同じです。
FileTest.setuid?(self.to_s) と同じです。
@see FileTest.#setuid? -
PrettyPrint
# maxwidth -> Integer (36604.0) -
自身の幅を返します。
自身の幅を返します。 -
Psych
:: Emitter # line _ width -> Integer (36604.0) -
「好ましい」行幅を返します。
「好ましい」行幅を返します。
@see Psych::Emitter#line_width= -
RDoc
:: Options # tab _ width -> Integer (36604.0) -
コマンドライン引数の --tab-width オプションで指定した数値を返します。
コマンドライン引数の --tab-width オプションで指定した数値を返します。 -
RSS
:: Maker :: ImageBase # width (36604.0) -
@todo
@todo -
RSS
:: Maker :: ImageBase # width=() (36604.0) -
@todo
@todo -
RSS
:: Parser # do _ validate (36604.0) -
@todo
@todo -
RSS
:: Parser # do _ validate= (36604.0) -
@todo
@todo -
RSS
:: Rss :: Channel :: Image # width (36604.0) -
@todo
@todo -
RSS
:: Rss :: Channel :: Image # width= (36604.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # mid _ match? (36604.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # width (36604.0) -
@todo
@todo -
Shell
# identical? (36604.0) -
@todo
@todo -
Shell
# setgid?(file) -> bool (36604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#setgid? -
Shell
# setuid?(file) -> bool (36604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#setuid? -
Shell
:: CommandProcessor # identical? (36604.0) -
@todo
@todo -
Shell
:: CommandProcessor # setgid?(file) -> bool (36604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#setgid? -
Shell
:: CommandProcessor # setuid?(file) -> bool (36604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#setuid? -
Shell
:: Filter # identical? (36604.0) -
@todo
@todo -
Shell
:: Filter # setgid?(file) -> bool (36604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#setgid? -
Shell
:: Filter # setuid?(file) -> bool (36604.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#setuid? -
Encoding
:: InvalidByteSequenceError # error _ bytes -> String (36304.0) -
エラー発生時に捨てられたバイト列を返します。
エラー発生時に捨てられたバイト列を返します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1\xFFdef")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "\xFF" on EUC-JP>
puts $!.error_bytes.dump ... -
Encoding
:: InvalidByteSequenceError # incomplete _ input? -> bool (36304.0) -
エラー発生時に入力文字列が不足している場合に真を返します。
エラー発生時に入力文字列が不足している場合に真を返します。
つまり、マルチバイト文字列の途中で文字列が終わっている場合に
真を返します。これは後続の入力を追加することでエラーが
解消する可能性があることを意味します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1z")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenc... -
Encoding
:: InvalidByteSequenceError # readagain _ bytes -> String (36304.0) -
エラー発生時に読み直さなければならないバイト列を返します。
エラー発生時に読み直さなければならないバイト列を返します。
@see Encoding::InvalidByteSequenceError#error_bytes -
RSS
:: Maker :: ItemsBase :: ItemBase # guid (36304.0) -
@todo
@todo -
OpenSSL
:: X509 :: ExtensionFactory # create _ ext(oid , value , critical = false) -> OpenSSL :: X509 :: Extension (27904.0) -
OpenSSL::X509::Extension のインスタンスを生成して返します。
OpenSSL::X509::Extension のインスタンスを生成して返します。
@param oid 拡張領域の識別子を表す文字列
@param value 拡張領域の値を表す文字列
@param critical 重要度(真偽値) -
Pathname
# cleanpath(consider _ symlink = false) -> Pathname (27904.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
cleanpath は、実際にファイルシステムを参照することなく、文字列操作
だけで処理を行います。
@param consider_symlink 真ならパス要素にシンボリックリンクがあった場合
にも問題ないように .. を残します。
//emlist[例][ruby]{
require "pathname"
path = Pathname.new("//.././../")
path # => #<Pa... -
BasicObject
# _ _ id _ _ -> Integer (27841.0) -
各オブジェクトに対して一意な整数を返します。あるオブジェクトに対し てどのような整数が割り当てられるかは不定です。
各オブジェクトに対して一意な整数を返します。あるオブジェクトに対し
てどのような整数が割り当てられるかは不定です。
Object#object_id と同じですが、#object_id は BasicObject に
はない事に注意してください。
//emlist[例][ruby]{
# frozen_string_literal: false
obj = Object.new
obj.object_id == obj.__id__ # => true
Object.new.__id__ == Object.new.__id__ # => false
(21... -
OpenSSL
:: X509 :: Attribute # oid -> String (27670.0) -
attribute の Object ID(識別子)を文字列で返します。
attribute の Object ID(識別子)を文字列で返します。
@raise OpenSSL::X509::AttributeError Object ID の取得に失敗した場合に発生します
@see OpenSSL::X509::Attribute#oid= -
OpenSSL
:: X509 :: Attribute # oid=(oid) (27670.0) -
attribute の Object ID(識別子)を文字列で設定します。
attribute の Object ID(識別子)を文字列で設定します。
@param oid 設定する Object ID 文字列
@raise OpenSSL::X509::AttributeError oidが不正であった場合に発生します
@see OpenSSL::X509::Attribute#oid -
WIN32OLE
_ METHOD # dispid -> Integer (27670.0) -
メソッドのディスパッチID(DISPID)を取得します。
メソッドのディスパッチID(DISPID)を取得します。
ディスパッチIDはメソッドの一意識別子です。WIN32OLEでは、
WIN32OLE#_invokeなどのメソッドで、呼び出すサーバのメソッドを指定
するのに利用します。
@return メソッドのDISPIDを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Workbooks')
method = WIN32OLE_METHOD.new(tobj, 'Add')
puts method.dispid # => 181
... -
Net
:: IMAP :: Envelope # message _ id -> String | nil (27655.0) -
message_id を文字列で返します。
message_id を文字列で返します。
エンベロープに存在しないときは nil を返します。 -
Etc
:: Group # gid -> Integer (27652.0) -
グループ ID を返します。
グループ ID を返します。 -
Etc
:: Group # gid=(gid) (27652.0) -
グループ ID を設定します。
グループ ID を設定します。 -
File
:: Stat # gid -> Integer (27652.0) -
オーナーのグループIDを返します。
オーナーのグループIDを返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.gid #=> 0
//} -
File
:: Stat # uid -> Integer (27652.0) -
オーナーのユーザIDを返します。
オーナーのユーザIDを返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.uid #=> 0
//} -
Process
:: Status # pid -> Integer (27652.0) -
終了したプロセスのプロセス ID を返します。
終了したプロセスのプロセス ID を返します。 -
CGI
:: HtmlExtension # hidden(attributes) -> String (27640.0) -
タイプが hidden である input 要素を生成します。
タイプが hidden である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
hidden({ "NAME" => "name", "VALUE" => "reset", "ID" => "foo" })
# <INPUT TYPE="hidden" NAME="name" VALUE="value" ID="foo"> -
CGI
:: HtmlExtension # hidden(name = "" , value = nil) -> String (27610.0) -
タイプが hidden である input 要素を生成します。
タイプが hidden である input 要素を生成します。
@param name name 属性の値を指定します。
@param value value 属性の値を指定します。
例:
hidden("name")
# <INPUT TYPE="hidden" NAME="name">
hidden("name", "value")
# <INPUT TYPE="hidden" NAME="name" VALUE="value"> -
Net
:: POPMail # uidl -> String (27607.0) -
メールに対して振られた、サーバ上で一意な識別子 (UIDL) をかえします。
メールに対して振られた、サーバ上で一意な識別子 (UIDL) をかえします。
Net::POPMail#number と違い、
この UIDL は接続しなおしても変化しません。 -
Net
:: POPMail # unique _ id -> String (27607.0) -
メールに対して振られた、サーバ上で一意な識別子 (UIDL) をかえします。
メールに対して振られた、サーバ上で一意な識別子 (UIDL) をかえします。
Net::POPMail#number と違い、
この UIDL は接続しなおしても変化しません。 -
Tracer
# trace _ func(event , file , line , id , binding , klass , *) -> object | nil (27607.0) -
@todo
@todo -
Etc
:: Passwd # gid -> Integer (27604.0) -
このユーザの gid を返します。
このユーザの gid を返します。 -
Etc
:: Passwd # gid=(gid) (27604.0) -
このユーザの gid を設定します。
このユーザの gid を設定します。 -
Etc
:: Passwd # uid -> Integer (27604.0) -
このユーザの uid を返します。
このユーザの uid を返します。 -
Etc
:: Passwd # uid=(uid) (27604.0) -
このユーザの uid を設定します。
このユーザの uid を設定します。 -
Fiddle
:: Function # ptr -> Integer | Fiddle :: Function (27604.0) -
関数ポインタを返します。
関数ポインタを返します。
Fiddle::Function.new の第1引数として指定したものを返します。 -
Fiddle
:: Importer # import _ symbol(name) -> Fiddle :: Pointer (27604.0) -
取り込んだライブラリからシンボルをインポートします。
取り込んだライブラリからシンボルをインポートします。
返り値はシンボルがロードされたメモリのアドレスを持つ Fiddle::Pointer
オブジェクトを返します。
@param name シンボル名(文字列) -
Fiddle
:: Importer # value(type , val = nil) -> Fiddle :: CStruct (27604.0) -
型が type で要素名が "value" であるような構造体を 定義(Fiddle::Importer#struct)し、 その構造体のメモリを Fiddle::CStruct#malloc で確保し、 確保したメモリを保持しているオブジェクトを返します。
型が type で要素名が "value" であるような構造体を
定義(Fiddle::Importer#struct)し、
その構造体のメモリを Fiddle::CStruct#malloc で確保し、
確保したメモリを保持しているオブジェクトを返します。
type は "int", "void*" といった文字列で型を指定します。
val に nil 以外を指定すると、確保された構造体に
その値を代入します。
@param type 型を表す文字列
@param val 構造体に確保される初期値
例
require 'fiddle/import'
module M
... -
Fiddle
:: Pointer # ptr -> Fiddle :: Pointer (27604.0) -
自身の指す値を Pointer にして返します。
自身の指す値を Pointer にして返します。
自身の指す値はポインタであると仮定します。
C 言語におけるポインタのポインタに対する間接参照 *p と同じです。
この返り値には、free 関数がセットされず、size は 0 とされます。
例:
require 'fiddle'
s = 'abc'
cptr = Fiddle::Pointer[s]
cref = cptr.ref
p cref.to_s(4).unpack('l*')[0] #=> 136121648
p cptr.to_i #=> 136121648
... -
Gem
:: Package :: TarHeader # gid -> Integer (27604.0) -
tar のヘッダに含まれる gid を返します。
tar のヘッダに含まれる gid を返します。 -
Gem
:: Package :: TarHeader # uid -> Integer (27604.0) -
tar のヘッダに含まれる uid を返します。
tar のヘッダに含まれる uid を返します。 -
Net
:: IMAP # idle {|resp| . . . } -> Net :: IMAP :: TaggedResponse (27604.0) -
IDLE 命令を送り、メールボックスの非同期的変化を待ち受けます。
IDLE 命令を送り、メールボックスの非同期的変化を待ち受けます。
このメソッドに渡したブロックは
Net::IMAP#add_response_handler によって
レスポンスハンドラとして用いられます。
また、このメソッドが終了する時点で
Net::IMAP#remove_response_handler で
ハンドラが削除されます。
レスポンスハンドラについては
Net::IMAP#add_response_handler を参照してください。
別のスレッドが Net::IMAP#idle_done を呼びだすまで
このメソッドを呼びだしたスレッドは停止します。
この命令は ...