ライブラリ
- ビルトイン (1)
-
cgi
/ core (1) -
cgi
/ html (21) - fiddle (1)
-
fiddle
/ import (3) - mkmf (14)
-
net
/ ftp (4) -
net
/ http (24) -
net
/ imap (54) -
net
/ smtp (2) - open-uri (1)
- openssl (1)
-
rdoc
/ context (3) -
rdoc
/ markup (1) -
rdoc
/ top _ level (1) - resolv (3)
-
rexml
/ document (26) -
rexml
/ parsers / pullparser (1) -
rexml
/ sax2listener (1) -
rexml
/ streamlistener (2) - rss (3)
-
rubygems
/ dependency (1) -
rubygems
/ package / tar _ header (1) -
shell
/ command-processor (1) - socket (10)
- un (1)
- uri (2)
-
webrick
/ httpauth / userdb (3) -
webrick
/ httpresponse (1) -
webrick
/ httputils (1) -
win32
/ registry (2) - win32ole (34)
- zlib (1)
クラス
- Addrinfo (1)
- BasicSocket (1)
- CGI (1)
-
Fiddle
:: Closure (1) -
Gem
:: Dependency (1) -
Gem
:: Package :: TarHeader (1) -
Net
:: FTP (2) -
Net
:: FTP :: MLSxEntry (2) -
Net
:: HTTP (15) -
Net
:: IMAP (1) -
Net
:: IMAP :: BodyTypeBasic (13) -
Net
:: IMAP :: BodyTypeMessage (16) -
Net
:: IMAP :: BodyTypeMultipart (9) -
Net
:: IMAP :: BodyTypeText (14) -
Net
:: IMAP :: ContentDisposition (1) -
Net
:: SMTP (2) -
OpenSSL
:: X509 :: Name (1) -
RDoc
:: Context (3) -
RDoc
:: Markup (1) -
RDoc
:: TopLevel (1) -
REXML
:: AttlistDecl (1) -
REXML
:: Attribute (1) -
REXML
:: Comment (1) -
REXML
:: DocType (16) -
REXML
:: Document (2) -
REXML
:: Element (1) -
REXML
:: Instruction (1) -
REXML
:: Parsers :: PullEvent (1) -
REXML
:: Text (2) -
REXML
:: XMLDecl (1) -
Resolv
:: DNS (3) -
Shell
:: CommandProcessor (1) -
Socket
:: AncillaryData (8) - Thread (1)
-
URI
:: FTP (2) -
WEBrick
:: HTTPResponse (1) -
WEBrick
:: HTTPUtils :: FormData (1) - WIN32OLE (3)
-
WIN32OLE
_ METHOD (18) -
WIN32OLE
_ PARAM (2) -
WIN32OLE
_ TYPE (7) -
WIN32OLE
_ TYPELIB (1) -
WIN32OLE
_ VARIABLE (3) -
Win32
:: Registry (2) -
Zlib
:: ZStream (1)
モジュール
-
CGI
:: Html3 (1) -
CGI
:: Html4 (1) -
CGI
:: Html4Fr (1) -
CGI
:: Html4Tr (1) -
CGI
:: HtmlExtension (17) - DublinCoreModel (3)
-
Fiddle
:: Importer (3) - Kernel (15)
-
Net
:: HTTPHeader (9) -
OpenURI
:: OpenRead (1) -
REXML
:: SAX2Listener (1) -
REXML
:: StreamListener (2) -
WEBrick
:: HTTPAuth :: UserDB (3)
キーワード
- [] (1)
- []= (1)
-
_ getproperty (1) -
_ invoke (1) -
_ setproperty (1) - add (1)
-
add
_ class (1) -
add
_ class _ or _ module (2) -
add
_ entry (1) -
add
_ module (1) -
attribute
_ of (1) -
attributes
_ of (1) -
auth
_ type (1) -
auth
_ type= (1) - authenticate (1)
- body (1)
-
check
_ signedness (2) -
check
_ sizeof (2) - checkbox (1)
- clone (1)
-
cmsg
_ is? (1) -
content
_ id (3) -
content
_ type (1) -
content
_ type= (1) - context (1)
-
convertible
_ int (2) -
create
_ value (1) - ctype (1)
- data (1)
-
data
_ type (1) -
dc
_ type (1) -
dc
_ type= (1) -
dc
_ types (1) - default (1)
-
default
_ event _ sources (1) -
default
_ ole _ types (1) - description (3)
- directory? (1)
- dispid (1)
- disposition (4)
- doctype (8)
- doctype? (1)
-
doctype
_ end (1) -
dsp
_ type (1) -
each
_ resource (1) - encoding (3)
- entities (1)
- entity (1)
- envelope (1)
- event? (1)
-
event
_ interface (1) - extension (4)
-
external
_ id (1) -
file
_ field (2) -
find
_ type (2) - form (2)
-
form
_ data= (1) - ftype (1)
- get2 (2)
-
get
_ line _ types (1) - getresource (1)
- getresources (1)
- guid (2)
-
have
_ struct _ member (2) -
have
_ type (2) - head (1)
- head2 (2)
- header (1)
- helpcontext (1)
- helpfile (1)
- helpstring (1)
- hidden (2)
-
implemented
_ ole _ types (1) - invkind (1)
-
invoke
_ kind (1) -
ip
_ pktinfo (1) -
ipv6
_ pktinfo (1) -
ipv6
_ pktinfo _ addr (1) -
ipv6
_ pktinfo _ ifindex (1) - key? (1)
- language (4)
- lines (2)
-
main
_ type (1) -
make
_ passwd (1) - md5 (3)
-
media
_ subtype (4) -
media
_ type (5) - mkmf (1)
- mlsd (2)
- multipart? (4)
-
multipart
_ form (2) - name (2)
- namespaces (1)
-
node
_ type (9) - notation (1)
- notations (1)
-
offset
_ vtbl (1) -
ole
_ methods (1) -
ole
_ type _ detail (2) - param (4)
- params (1)
- parts (1)
-
password
_ field (2) - post (2)
- post2 (2)
- progid (1)
- public (1)
-
radio
_ group (2) - raise (1)
- read (2)
-
request
_ get (2) -
request
_ head (2) -
request
_ post (2) -
return
_ type (1) -
return
_ type _ detail (1) -
return
_ vtype (1) - sendmsg (1)
-
set
_ content _ type (1) -
set
_ form _ data (1) - size (3)
-
size
_ opt _ params (1) -
size
_ params (1) - socktype (1)
- start (2)
-
sub
_ type (1) - subtype (4)
- system (1)
-
text
_ field (2) -
to
_ s (1) -
try
_ type (2) -
type
_ params (1) - typealias (1)
- typecode (1)
- typecode= (1)
- typeflag (1)
- typekind (1)
-
unix
_ rights (1) - value (1)
-
variable
_ kind (1) - varkind (1)
- visible? (1)
- write (2)
検索結果
先頭5件
-
Gem
:: Dependency # type -> Symbol (72307.0) -
依存関係の型を返します。
依存関係の型を返します。 -
Socket
:: AncillaryData # type -> Integer (63373.0) -
自身が保持している cmsg type (種類) を返します。
自身が保持している cmsg type (種類) を返します。
require 'socket'
p Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "").type
#=> 2
@see Socket::AncillaryData.new -
REXML
:: Document # doctype -> REXML :: DocType | nil (46204.0) -
文書の DTD を返します。
文書の DTD を返します。
文書が DTD を持たない場合は nil を返します。 -
WIN32OLE
_ TYPE # default _ ole _ types -> [WIN32OLE _ TYPE] (45943.0) -
型が持つデフォルトのインターフェイスを取得します。
型が持つデフォルトのインターフェイスを取得します。
default_ole_typesメソッドは、selfがCoClass(コンポーネントクラス)の場
合、そのクラスが実装しているデフォルトのインターフェイスと、サポートし
ていればデフォルトのソースインターフェイスを返します。
@return デフォルトインターフェイスをWIN32OLE_TYPEの配列として返し
ます。デフォルトインターフェイスは、最大でも、クラス操作用のイ
ンターフェイス(OLEオートメーション用)と、イベント用のソースイ
ンターフェイスの2要素です。デフォルトインターフ... -
WIN32OLE
_ TYPE # implemented _ ole _ types -> [WIN32OLE _ TYPE] (45943.0) -
この型が実装するインターフェイスを取得します。
この型が実装するインターフェイスを取得します。
implemented_ole_typesメソッドは、selfがCoClass(コンポーネントクラス)
の場合、そのクラスが実装しているすべてのインターフェイスを返します。
@return クラスが実装するすべてのインターフェイスをWIN32OLE_TYPEの
配列として返します。この型がインターフェイスを実装しない場合は、
空配列を返します。
@raise WIN32OLERuntimeError 型属性が取得できない場合に通知します。
tobj = WIN32OLE_TYPE.new('Micro... -
WIN32OLE
_ TYPE # typekind -> Integer (45694.0) -
selfの種類を示す値を取得します。
selfの種類を示す値を取得します。
値の意味については、WIN32OLE_TYPE#ole_typeを参照してください。
@return 型の種類を示す数値を返します。
@raise WIN32OLERuntimeError 型の種類(TYPEKIND)を取得できない場合に通知します。
tobj = WIN32OLE_TYPE.new('Microsoft Word 14.0 Object Library', 'Documents')
p tobj.typekind # => 4
@see WIN32OLE_TYPE#ole_type -
Net
:: IMAP :: BodyTypeBasic # media _ subtype -> String (45622.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see Net::IMAP::BodyTypeBasic#media_type -
Net
:: IMAP :: BodyTypeMessage # media _ subtype -> String (45622.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see Net::IMAP::BodyTypeMessage#media_type -
Net
:: IMAP :: BodyTypeMultipart # media _ subtype -> String (45622.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see 2045, Net::IMAP::BodyTypeText#media_type -
Net
:: IMAP :: BodyTypeText # media _ subtype -> String (45622.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see Net::IMAP::BodyTypeText#media_type -
Net
:: IMAP :: BodyTypeBasic # media _ type -> String (45607.0) -
MIME のメディアタイプを返します。
MIME のメディアタイプを返します。
@see Net::IMAP::BodyTypeBasic#subtype -
Net
:: IMAP :: BodyTypeMessage # media _ type -> String (45607.0) -
MIME のメディアタイプを返します。
MIME のメディアタイプを返します。
これは "MESSAGE" を返します。
@see Net::IMAP::BodyTypeMessage#subtype -
Net
:: IMAP :: BodyTypeMultipart # media _ type -> String (45607.0) -
MIME のメディアタイプを返します。
MIME のメディアタイプを返します。
"MULTIPART" を返します。
@see Net::IMAP::BodyTypeMultipart#subtype -
Net
:: IMAP :: BodyTypeText # media _ type -> String (45607.0) -
MIME のメディアタイプを返します。
MIME のメディアタイプを返します。
これは "TEXT" を返します。
@see Net::IMAP::BodyTypeText#subtype -
REXML
:: AttlistDecl # node _ type -> Symbol (45607.0) -
Symbol :attlistdecl を返します。
Symbol :attlistdecl を返します。 -
REXML
:: DocType # node _ type -> Symbol (45607.0) -
Symbol :doctype を返します。
Symbol :doctype を返します。 -
REXML
:: XMLDecl # node _ type -> Symbol (45607.0) -
シンボル :xmldecl を返します。
シンボル :xmldecl を返します。 -
Net
:: IMAP :: BodyTypeMessage # body -> Net :: IMAP :: BodyTypeBasic | Net :: IMAP :: BodyTypeMessage | Net :: IMAP :: BodyTypeText | Net :: IMAP :: BodyTypeMultipart (38704.0) -
ボディを返します。
ボディを返します。 -
REXML
:: Text # doctype -> REXML :: DocType | nil (37204.0) -
テキストノードが属する文書の DTD を返します。
テキストノードが属する文書の DTD を返します。
そのような文書(REXML::Document)が存在しない、すなわち
テキストノードの親ノードを辿っても REXML::Document に到達しない、
場合には nil を返します。
@see REXML::DocType -
Kernel
# find _ type(type , opt , *headers) -> Array (37000.0) -
静的な型 type がシステムに存在するかどうか検査します。
静的な型 type がシステムに存在するかどうか検査します。
@param type 検査したい型の名前を指定します。
@param opt コンパイラに渡す追加のオプションを指定します。
@param headers 追加のヘッダを指定します。
@see Kernel#have_type -
Kernel
# find _ type(type , opt , *headers) { . . . } -> Array (37000.0) -
静的な型 type がシステムに存在するかどうか検査します。
静的な型 type がシステムに存在するかどうか検査します。
@param type 検査したい型の名前を指定します。
@param opt コンパイラに渡す追加のオプションを指定します。
@param headers 追加のヘッダを指定します。
@see Kernel#have_type -
WIN32OLE
_ VARIABLE # ole _ type _ detail -> [String] (36697.0) -
変数の型と属性を取得します。
変数の型と属性を取得します。
@return 変数の型と属性を文字列配列で返します。
tobj = WIN32OLE_TYPE.new('Microsoft XML, v5.0', 'tagSTATSTG')
tobj.variables.each do |v|
puts "#{v.ole_type} [#{v.ole_type_detail.join(', ')}] #{v.name}"
end
出力結果
Unknown Type 31 [] pwcsName # => VT_LPWSTR はWIN32OLE::VARIANTで未定義なので変換でき... -
WIN32OLE
_ METHOD # return _ type _ detail -> [String] (36661.0) -
返り値の型と属性を取得します。
返り値の型と属性を取得します。
@return 返り値の型と属性を文字列配列で返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Application')
method = WIN32OLE_METHOD.new(tobj, 'Workbooks')
p method.return_type_detail # => ["PTR", "USERDEFINED", "Workbooks"]
属性が付加されていない場合は、WIN32OLE_METHOD#return_typeを要素と
... -
URI
:: FTP # typecode -> String | nil (36652.0) -
ファイル転送のタイプを文字列で返します。"a" はテキスト、"i" はバイナリ、"d" はディレクトリを表します。 設定されていない場合は nil を返します。
ファイル転送のタイプを文字列で返します。"a" はテキスト、"i" はバイナリ、"d" はディレクトリを表します。
設定されていない場合は nil を返します。 -
WIN32OLE
_ PARAM # ole _ type _ detail -> [String] (36643.0) -
パラメータの属性を取得します。
パラメータの属性を取得します。
@return 型の属性を文字列配列で返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'IWorksheetFunction')
method = WIN32OLE_METHOD.new(tobj, 'SumIf')
param1 = method.params[0]
p param1.ole_type_detail # => ["PTR", "USERDEFINED", "Range"]
パラメータの取り得る属性値はCOMのIDL(インターフ... -
Net
:: FTP :: MLSxEntry # media _ type -> String|nil (36625.0) -
メディアタイプを返します。
メディアタイプを返します。
IANA media type の値を返します。
情報がない場合は nil を返します。 -
URI
:: FTP # typecode=(t) (36622.0) -
ファイル転送のタイプを文字列で指定します。
ファイル転送のタイプを文字列で指定します。
@param t ファイル転送のタイプを文字列で指定します。"a" はテキスト、"i" はバイナリ、"d" はディレクトリを表します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。 -
DublinCoreModel
# dc _ type (36610.0) -
@todo
@todo -
DublinCoreModel
# dc _ type= (36610.0) -
@todo
@todo -
Net
:: IMAP :: ContentDisposition # dsp _ type -> String (36607.0) -
Content-Disposition フィールドのタイプを文字列で返します。
Content-Disposition フィールドのタイプを文字列で返します。
"INLINE", "ATTACHMENT" などの文字列を返します。
詳しくは 2183 などを見てください。 -
REXML
:: Attribute # node _ type -> Symbol (36607.0) -
「:attribute」というシンボルを返します。
「:attribute」というシンボルを返します。 -
REXML
:: Comment # node _ type -> Symbol (36607.0) -
シンボル :comment を返します。
シンボル :comment を返します。 -
REXML
:: Document # node _ type -> Symbol (36607.0) -
シンボル :document を返します。
シンボル :document を返します。 -
REXML
:: Element # node _ type -> Symbol (36607.0) -
シンボル :element を返します。
シンボル :element を返します。 -
REXML
:: Instruction # node _ type -> Symbol (36607.0) -
Symbol :processing_instruction を返します。
Symbol :processing_instruction を返します。 -
REXML
:: Text # node _ type -> Symbol (36607.0) -
Symbol :text を返します。
Symbol :text を返します。 -
Zlib
:: ZStream # data _ type -> Integer (36607.0) -
ストリームに入力されたデータの形式を推測します。 返り値は Zlib::BINARY, Zlib::ASCII, Zlib::UNKNOWN の いずれかです。
ストリームに入力されたデータの形式を推測します。
返り値は Zlib::BINARY, Zlib::ASCII, Zlib::UNKNOWN の
いずれかです。 -
CGI
:: Html3 # doctype (36604.0) -
@todo
@todo -
CGI
:: Html4 # doctype (36604.0) -
@todo
@todo -
CGI
:: Html4Fr # doctype (36604.0) -
@todo
@todo -
CGI
:: Html4Tr # doctype (36604.0) -
@todo
@todo -
DublinCoreModel
# dc _ types (36604.0) -
@todo
@todo
* http://purl.org/rss/1.0/modules/syndication/ -
REXML
:: Parsers :: PullEvent # doctype? -> bool (36604.0) -
DTD 開始なら真を返します。
DTD 開始なら真を返します。 -
REXML
:: SAX2Listener # doctype(name , pub _ sys , long _ name , uri) -> () (36604.0) -
文書型宣言(DTD)に出会った時に呼び出されるコールバックメソッドです。
文書型宣言(DTD)に出会った時に呼び出されるコールバックメソッドです。
@param name 宣言されているルート要素名が文字列で渡されます。
@param pub_sys "PUBLIC" もしくは "SYSTEM" が渡されます。nilが渡される場合もあります。
@param long_name "SYSTEM" の場合はシステム識別子が、"PUBLIC"の場合は公開識別子が
文字列で渡されます
@param uri "SYSTEM" の場合は nil が、"PUBLIC" の場合はシステム識別子が渡されます -
REXML
:: StreamListener # doctype(name , pub _ sys , long _ name , uri) -> () (36604.0) -
文書型宣言(DTD)をパースしたときに呼び出されるコールバックメソッドです。
文書型宣言(DTD)をパースしたときに呼び出されるコールバックメソッドです。
pub_sys, long_name, uri はDTDが内部サブセットのみを
利用している場合には nil が渡されます。
@param name 宣言されているルート要素名が文字列で渡されます。
@param pub_sys "PUBLIC" もしくは "SYSTEM" が渡されます。nilが渡される場合もあります。
@param long_name "SYSTEM" の場合はシステム識別子が、"PUBLIC"の場合は公開識別子が
文字列で渡されます
@param uri "SYSTEM" の場... -
REXML
:: StreamListener # doctype _ end -> () (36604.0) -
文書型宣言(DTD)の終了区切りをパースしたときに呼び出されるコールバックメソッドです。
文書型宣言(DTD)の終了区切りをパースしたときに呼び出されるコールバックメソッドです。 -
Net
:: IMAP :: BodyTypeBasic # subtype -> String (36322.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see Net::IMAP::BodyTypeBasic#media_type -
Net
:: IMAP :: BodyTypeMessage # subtype -> String (36322.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see Net::IMAP::BodyTypeMessage#media_type -
Net
:: IMAP :: BodyTypeMultipart # subtype -> String (36322.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see 2045, Net::IMAP::BodyTypeText#media_type -
Net
:: IMAP :: BodyTypeText # subtype -> String (36322.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see Net::IMAP::BodyTypeText#media_type -
WIN32OLE
_ TYPE # default _ event _ sources -> [WIN32OLE _ TYPE] (27841.0) -
型が持つソースインターフェイスを取得します。
型が持つソースインターフェイスを取得します。
default_event_sourcesメソッドは、selfがCoClass(コンポーネントクラス)
の場合、そのクラスがサポートするデフォルトのソースインターフェイス(イ
ベントの通知元となるインターフェイス)を返します。
@return デフォルトのソースインターフェイスをWIN32OLE_TYPEの配列と
して返します。返すのは配列ですが、デフォルトのソースインターフェ
イスは最大でも1インターフェイスです。ソースインターフェイスを持
たない場合は空配列を返します。
tobj = ... -
Net
:: HTTPHeader # content _ type=(type) (27784.0) -
type と params から Content-Type: ヘッダフィールドの 値を設定します。
type と params から Content-Type: ヘッダフィールドの
値を設定します。
@param type メディアタイプを文字列で指定します。
@param params パラメータ属性をハッシュで指定します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_type # => ni... -
Net
:: HTTPHeader # set _ content _ type(type , params = {}) (27784.0) -
type と params から Content-Type: ヘッダフィールドの 値を設定します。
type と params から Content-Type: ヘッダフィールドの
値を設定します。
@param type メディアタイプを文字列で指定します。
@param params パラメータ属性をハッシュで指定します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_type # => ni... -
WEBrick
:: HTTPAuth :: UserDB # auth _ type=(type) (27628.0) -
認証のタイプをセットします。
認証のタイプをセットします。
@param type WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::DigestAuth のいずれかを指定します。 -
Net
:: IMAP :: BodyTypeBasic # disposition -> Net :: IMAP :: ContentDisposition | nil (27604.0) -
Content-Dispotition の値を返します。
Content-Dispotition の値を返します。
Net::IMAP::ContentDisposition オブジェクトを返します。
@see 1806, 2183 -
Net
:: IMAP :: BodyTypeMessage # disposition -> Net :: IMAP :: ContentDisposition | nil (27604.0) -
Content-Dispotition の値を返します。
Content-Dispotition の値を返します。
Net::IMAP::ContentDisposition オブジェクトを返します。
@see 1806, 2183 -
Net
:: IMAP :: BodyTypeMultipart # disposition -> Net :: IMAP :: ContentDisposition | nil (27604.0) -
Content-Dispotition の値を返します。
Content-Dispotition の値を返します。
Net::IMAP::ContentDisposition オブジェクトを返します。
@see 1806, 2183 -
Net
:: IMAP :: BodyTypeText # disposition -> Net :: IMAP :: ContentDisposition | nil (27604.0) -
Content-Dispotition の値を返します。
Content-Dispotition の値を返します。
Net::IMAP::ContentDisposition オブジェクトを返します。
@see 1806, 2183 -
Net
:: HTTPHeader # content _ type -> String|nil (27427.0) -
"text/html" のような Content-Type を表す 文字列を返します。
"text/html" のような Content-Type を表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/comments.cgi?post=comment')
req = Net::HTTP::Post.new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/for... -
Net
:: HTTPHeader # type _ params -> Hash (27391.0) -
Content-Type のパラメータを {"charset" => "iso-2022-jp"} という形の Hash で返します。
Content-Type のパラメータを {"charset" => "iso-2022-jp"}
という形の Hash で返します。
Content-Type: ヘッダフィールドが存在しない場合には
空のハッシュを返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.type_params # => {"charset"=>"UTF-8"}
//} -
Net
:: HTTPHeader # main _ type -> String|nil (27343.0) -
"text/html" における "text" のようなタイプを表す 文字列を返します。
"text/html" における "text" のようなタイプを表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.main_type # => "text"
//} -
Net
:: HTTPHeader # sub _ type -> String|nil (27343.0) -
"text/html" における "html" のようなサブタイプを表す 文字列を返します。
"text/html" における "html" のようなサブタイプを表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.sub_type # => "html"
//} -
WIN32OLE
_ METHOD # return _ type -> String (27343.0) -
メソッドの返り値の型名を取得します。
メソッドの返り値の型名を取得します。
@return 返り値の型名を示す文字列を返します。
@raise WIN32OLERuntimeError メソッドの型情報を取得できなかった場合に通知します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Application')
method = WIN32OLE_METHOD.new(tobj, 'Visible')
puts method.return_type # => BOOL
OLEオートメーションの型名は、対応するWIN32OLE... -
Socket
:: AncillaryData # data -> String (27322.0) -
自身が保持している cmsg data (データ) を返します。
自身が保持している cmsg data (データ) を返します。
require 'socket'
p Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "").type
#=> ""
@see Socket::AncillaryData.new -
WIN32OLE
_ METHOD # return _ vtype -> Integer (27322.0) -
メソッドの返り値の型を示す数値を取得します。
メソッドの返り値の型を示す数値を取得します。
@return 返り値の型を示す数値(VARENUM)を返します。
@raise WIN32OLERuntimeError メソッドの型情報を取得できなかった場合に通知します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Application')
method = WIN32OLE_METHOD.new(tobj, 'Visible')
puts method.return_vtype # => 11
VARENUMの定義は、Platfo... -
WIN32OLE
_ TYPE # guid -> String | nil (27322.0) -
この型のGUID(グローバル一意識別子)を取得します。
この型のGUID(グローバル一意識別子)を取得します。
@return GUIDを文字列で返します。GUIDを持たない型の場合はnilを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Application')
puts tobj.guid # => {00024500-0000-0000-C000-000000000046}
GUIDは、COMのクラス識別子(CLSID)、インターフェイス識別子(IID)など多数の
領域でWindows上のオブジェクトの識別に利用される128ビットの... -
WIN32OLE
_ TYPE # ole _ methods -> [WIN32OLE _ METHOD] (27322.0) -
型が持つメソッドのメタデータを取得します。
型が持つメソッドのメタデータを取得します。
@return 型が持つメソッドのメタデータをWIN32OLE_METHODの配列として返します。
メソッドを持たない場合は空配列を返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
methods = tobj.ole_methods.map {|m| m.name }
# => ['QueryInterface', 'AddRef', 'Release',..... -
WIN32OLE
_ TYPE # progid -> String | nil (27322.0) -
selfのPROGIDを取得します。
selfのPROGIDを取得します。
PROGIDは、生成可能なOLEオートメーションサーバのCoClass(コンポーネント
クラス)が持つレジストリ登録名です。WIN32OLE.newの引数に指定して
WIN32OLEオブジェクトを生成できます。
@return selfのPROGIDを文字列で返します。selfがPROGIDを持たない、または
CoClassでない場合はnilを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Application')
p tobj... -
WEBrick
:: HTTPAuth :: UserDB # auth _ type -> Class (27307.0) -
WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::DigestAuth のいずれかを返します。
WEBrick::HTTPAuth::BasicAuth, WEBrick::HTTPAuth::DigestAuth のいずれかを返します。 -
Addrinfo
# socktype -> Integer (27304.0) -
ソケットタイプを整数で返します。
ソケットタイプを整数で返します。
require 'socket'
Addrinfo.tcp("localhost", 80).socktype == Socket::SOCK_STREAM #=> true -
Fiddle
:: Closure # ctype -> Integer (27304.0) -
返り値の型を返します。
返り値の型を返します。 -
Fiddle
:: Importer # typealias(new , orig) -> () (27304.0) -
extern や struct で利用する型の別名を定義します。
extern や struct で利用する型の別名を定義します。
@param new 別名(文字列)
@param orig 別名を付けたい型の名前(文字列)
@see Fiddle::Importer#extern, Fiddle::Importer#sizeof,
Fiddle::Importer#struct, Fiddle::Importer#union -
Gem
:: Package :: TarHeader # typeflag -> String (27304.0) -
tar のヘッダに含まれる typeflag を返します。
tar のヘッダに含まれる typeflag を返します。 -
Net
:: IMAP :: BodyTypeBasic # content _ id -> String | nil (27304.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeBasic # description -> String | nil (27304.0) -
Content-Description の値を文字列で返します。
Content-Description の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeBasic # encoding -> String (27304.0) -
Content-Transfer-Encoding の値を文字列で返します。
Content-Transfer-Encoding の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeBasic # md5 -> String | nil (27304.0) -
ボディの MD5 値を文字列で返します。
ボディの MD5 値を文字列で返します。 -
Net
:: IMAP :: BodyTypeMessage # content _ id -> String | nil (27304.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeMessage # description -> String | nil (27304.0) -
Content-Description の値を文字列で返します。
Content-Description の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeMessage # encoding -> String (27304.0) -
Content-Transfer-Encoding の値を文字列で返します。
Content-Transfer-Encoding の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeMessage # md5 -> String | nil (27304.0) -
ボディの MD5 値を文字列で返します。
ボディの MD5 値を文字列で返します。 -
Net
:: IMAP :: BodyTypeText # content _ id -> String | nil (27304.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeText # description -> String | nil (27304.0) -
Content-Description の値を文字列で返します。
Content-Description の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeText # encoding -> String (27304.0) -
Content-Transfer-Encoding の値を文字列で返します。
Content-Transfer-Encoding の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeText # md5 -> String | nil (27304.0) -
ボディの MD5 値を文字列で返します。
ボディの MD5 値を文字列で返します。 -
RDoc
:: Markup # get _ line _ types -> [Symbol] (27304.0) -
変換する文字列の各行のタイプを Symbol の配列で返します。
変換する文字列の各行のタイプを Symbol の配列で返します。
rdoc ライブラリのデバッグ用途に使用します。
SM::SimpleMarkup#convert の後に実行します。
@see SM::SimpleMarkup#convert -
REXML
:: DocType # add(child) -> () (27304.0) -
child を子ノード列の最後に追加します。
child を子ノード列の最後に追加します。
REXML::Parent#add を内部で呼び出します。
また、REXML::DocType#entities を更新します。
@param child 追加するノード -
REXML
:: DocType # external _ id -> String | nil (27304.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.... -
Shell
:: CommandProcessor # ftype(filename) -> String (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.ftype -
WIN32OLE
_ TYPELIB # guid -> String (27304.0) -
TypeLibのGUIDを取得します。
TypeLibのGUIDを取得します。
@return TypeLibのGUIDを文字列で返します。
@raise WIN32OLERuntimeError TypeLibの属性が読み取れない場合に通知します。
tlib = WIN32OLE_TYPELIB.new('Microsoft Excel 14.0 Object Library')
puts tlib.guid # => '{00020813-0000-0000-C000-000000000046}' -
Net
:: IMAP :: BodyTypeMultipart # parts -> [Net :: IMAP :: BodyTypeBasic | Net :: IMAP :: BodyTypeText | Net :: IMAP :: BodyTypeMessage | Net :: IMAP :: BodyTypeMultipart] (20404.0) -
マルチパートの各部分を返します。
マルチパートの各部分を返します。 -
Kernel
# have _ type(type , headers = nil , opt = "") -> bool (19072.0) -
静的な型 type がシステムに存在するかどうか検査します。
静的な型 type がシステムに存在するかどうか検査します。
型 type がシステムに存在する場合は、グローバル変数 $defs に
"-DHAVE_type" を追加し、真を返します。型 type がシステムに存在しない場
合は、偽を返します。
例えば、
require 'mkmf'
have_type('foo') # => true
である場合、HAVE_TYPE_FOO をというプリプロセッサマクロをコンパイラに渡します。
@param type 検査したい型の名前を指定します。
@param headers 追加のヘッダを指定します。
@param opt ... -
Kernel
# have _ type(type , headers = nil , opt = "") { . . . } -> bool (19072.0) -
静的な型 type がシステムに存在するかどうか検査します。
静的な型 type がシステムに存在するかどうか検査します。
型 type がシステムに存在する場合は、グローバル変数 $defs に
"-DHAVE_type" を追加し、真を返します。型 type がシステムに存在しない場
合は、偽を返します。
例えば、
require 'mkmf'
have_type('foo') # => true
である場合、HAVE_TYPE_FOO をというプリプロセッサマクロをコンパイラに渡します。
@param type 検査したい型の名前を指定します。
@param headers 追加のヘッダを指定します。
@param opt ... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (18994.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 (18994.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
# try _ type(type , headers = nil , opt = "") -> bool (18982.0) -
Kernel#have_type を使ってください。
Kernel#have_type を使ってください。
@param type 検査したい型の名前を指定します。
@param headers 追加のヘッダを指定します。
@param opt コンパイラに渡す追加のオプションを指定します。 -
Kernel
# try _ type(type , headers = nil , opt = "") { . . . } -> bool (18982.0) -
Kernel#have_type を使ってください。
Kernel#have_type を使ってください。
@param type 検査したい型の名前を指定します。
@param headers 追加のヘッダを指定します。
@param opt コンパイラに渡す追加のオプションを指定します。 -
Socket
:: AncillaryData # ipv6 _ pktinfo _ addr -> Addrinfo (18652.0) -
自身の type が IPV6_PKTINFO である場合、保持しているデータ (アドレス、インターフェースのインデックス) のアドレスを返します。
自身の type が IPV6_PKTINFO である場合、保持しているデータ
(アドレス、インターフェースのインデックス)
のアドレスを返します。
require 'socket'
addr = Addrinfo.ip("::1")
ifindex = 0
ancdata = Socket::AncillaryData.ipv6_pktinfo(addr, ifindex)
p ancdata.ipv6_pktinfo_addr #=> #<Addrinfo: ::1>
@see Socket::AncillaryData.ipv6_pktinfo,
S... -
OpenSSL
:: X509 :: Name # add _ entry(oid , value , type = nil) (18643.0) -
新しい属性を追加します。
新しい属性を追加します。
@param oid 属性型文字列
@param value 属性値文字列
@param type 属性値の(ASN.1の)型、省略時は OpenSSL::X509::Name::OBJECT_TYPE_TEMPLATE と oid から型が決まる
@raise OpenSSL::X509::NameError 属性の追加に失敗した場合に発生します -
Win32
:: Registry # read(name , *rtype) (18640.0) -
@todo
@todo
レジストリ値 name を読み,[ type, data ]
の配列で返します。
name が nil の場合,(標準) レジストリ値が読み込まれます。
type はレジストリ値の型です。(⇒Win32::Registry::Constants)
data はレジストリ値のデータで,クラスは以下の通りです:
* REG_SZ, REG_EXPAND_SZ
String
* REG_MULTI_SZ
String の配列
* REG_DWORD, REG_DWORD_BIG_ENDIAN, REG_QWORD
Integer
* REG_B...