ライブラリ
- ビルトイン (1)
-
cgi
/ core (4) -
cgi
/ html (26) - csv (1)
- fiddle (1)
-
fiddle
/ import (1) - getoptlong (1)
- mkmf (4)
-
net
/ ftp (3) -
net
/ http (8) -
net
/ imap (45) -
net
/ smtp (1) - open-uri (4)
- pathname (1)
-
rdoc
/ context (3) -
rdoc
/ markup (1) -
rdoc
/ top _ level (1) - resolv (2)
-
rexml
/ document (9) -
rexml
/ sax2listener (1) -
rexml
/ streamlistener (1) -
rubygems
/ dependency (1) -
rubygems
/ package / tar _ header (1) - shell (1)
-
shell
/ command-processor (1) -
shell
/ filter (1) - socket (9)
- uri (1)
-
webrick
/ httpauth / userdb (1) -
webrick
/ httprequest (1) -
webrick
/ httpresponse (1) -
webrick
/ httputils (1) -
win32
/ registry (6) - win32ole (49)
- zlib (1)
クラス
- Addrinfo (1)
- BasicSocket (1)
- CGI (2)
- CSV (1)
-
Fiddle
:: Closure (1) -
File
:: Stat (1) -
Gem
:: Dependency (1) -
Gem
:: Package :: TarHeader (1) - GetoptLong (1)
-
Net
:: FTP :: MLSxEntry (3) -
Net
:: HTTP (5) -
Net
:: IMAP (1) -
Net
:: IMAP :: BodyTypeBasic (10) -
Net
:: IMAP :: BodyTypeMessage (16) -
Net
:: IMAP :: BodyTypeMultipart (6) -
Net
:: IMAP :: BodyTypeText (11) -
Net
:: IMAP :: ContentDisposition (1) -
Net
:: SMTP (1) - Pathname (1)
-
RDoc
:: Context (3) -
RDoc
:: Markup (1) -
RDoc
:: TopLevel (1) -
REXML
:: DocType (7) -
REXML
:: Instruction (2) -
Resolv
:: DNS (2) - Shell (1)
-
Shell
:: CommandProcessor (1) -
Shell
:: Filter (1) -
Socket
:: AncillaryData (7) -
URI
:: FTP (1) -
WEBrick
:: HTTPRequest (1) -
WEBrick
:: HTTPResponse (1) -
WEBrick
:: HTTPUtils :: FormData (1) - WIN32OLE (3)
-
WIN32OLE
_ METHOD (15) -
WIN32OLE
_ PARAM (4) -
WIN32OLE
_ TYPE (13) -
WIN32OLE
_ TYPELIB (7) -
WIN32OLE
_ VARIABLE (6) -
WIN32OLE
_ VARIANT (1) -
Win32
:: Registry (6) -
Zlib
:: ZStream (1)
モジュール
-
CGI
:: HtmlExtension (26) -
CGI
:: QueryExtension (2) -
Fiddle
:: Importer (1) - Kernel (4)
-
Net
:: HTTPHeader (3) -
OpenURI
:: Meta (3) -
OpenURI
:: OpenRead (1) -
REXML
:: SAX2Listener (1) -
REXML
:: StreamListener (1) -
WEBrick
:: HTTPAuth :: UserDB (1)
キーワード
- [] (2)
- []= (1)
-
_ getproperty (1) -
_ invoke (1) -
_ setproperty (1) -
add
_ class (1) -
add
_ class _ or _ module (2) -
add
_ module (1) -
attribute
_ of (1) -
auth
_ type (1) - authenticate (1)
- body (1)
-
capable
_ auth _ types (1) - charset (2)
-
check
_ signedness (2) -
check
_ sizeof (2) - checkbox (2)
-
checkbox
_ group (2) -
cmsg
_ is? (1) - content (1)
-
content
_ id (3) -
content
_ type (5) - ctype (1)
- data (1)
-
data
_ type (1) - description (3)
- dispid (1)
- disposition (1)
- doctype (2)
-
dsp
_ type (1) - each (1)
-
each
_ value (1) - encoding (3)
- entities (1)
- entity (1)
- envelope (1)
-
event
_ interface (1) - extension (1)
-
external
_ id (1) - facts (1)
-
file
_ field (2) - form (2)
- ftype (5)
- get2 (2)
-
get
_ line _ types (1) - getresource (1)
- getresources (1)
- guid (2)
- header (1)
- helpcontext (2)
- helpfile (2)
- helpstring (2)
- hidden (2)
- inspect (2)
- invkind (1)
-
invoke
_ kind (1) -
ip
_ pktinfo (1) -
ipv6
_ pktinfo (1) -
ipv6
_ pktinfo _ ifindex (1) - language (4)
-
library
_ name (1) - lines (2)
-
main
_ type (1) -
major
_ version (2) -
make
_ passwd (1) - md5 (3)
-
media
_ subtype (4) -
media
_ type (5) -
minor
_ version (2) - multipart? (1)
-
multipart
_ form (2) - name (6)
-
offset
_ vtbl (1) -
ole
_ type (3) -
ole
_ type _ detail (2) - out (1)
- param (4)
- parts (1)
-
password
_ field (2) - path (1)
- post (1)
- progid (1)
- public (1)
-
radio
_ group (2) - read (2)
-
request
_ get (2) - reset (2)
-
return
_ type (1) -
return
_ type _ detail (1) -
return
_ vtype (1) - sendmsg (1)
-
set
_ error (1) - size (3)
-
size
_ opt _ params (1) -
size
_ params (1) - socktype (1)
-
src
_ type (1) -
sub
_ type (1) - submit (2)
- subtype (4)
- system (1)
- target (1)
-
text
_ field (2) -
to
_ s (5) - typealias (1)
- typecode (1)
- typeflag (1)
- typekind (1)
-
unix
_ rights (1) -
variable
_ kind (1) - varkind (1)
- vartype (1)
- write (1)
検索結果
先頭5件
-
Gem
:: Dependency # type -> Symbol (72307.0) -
依存関係の型を返します。
依存関係の型を返します。 -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (65794.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 (65794.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... -
Socket
:: AncillaryData # type -> Integer (63973.0) -
自身が保持している cmsg type (種類) を返します。
自身が保持している cmsg type (種類) を返します。
require 'socket'
p Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "").type
#=> 2
@see Socket::AncillaryData.new -
Net
:: FTP :: MLSxEntry # type -> String|nil (63907.0) -
エントリの種類を返します。
エントリの種類を返します。
"file", "dir", "cdir", "pdir" などを返します。
情報がない場合は nil を返しますが、通常は
あるはずです。 -
CGI
:: QueryExtension # content _ type -> String (55255.0) -
ENV['CONTENT_TYPE'] を返します。
ENV['CONTENT_TYPE'] を返します。 -
WEBrick
:: HTTPRequest # content _ type -> String | nil (55255.0) -
リクエストの Content-Type ヘッダを文字列で返します。
リクエストの Content-Type ヘッダを文字列で返します。 -
Net
:: IMAP :: BodyTypeMessage # language -> String | [String] | nil (55204.0) -
1766 で定義されているボディ言語を表わす 文字列もしくは文字列の配列を返します。
1766 で定義されているボディ言語を表わす
文字列もしくは文字列の配列を返します。 -
RDoc
:: Markup # get _ line _ types -> [Symbol] (54904.0) -
変換する文字列の各行のタイプを Symbol の配列で返します。
変換する文字列の各行のタイプを Symbol の配列で返します。
rdoc ライブラリのデバッグ用途に使用します。
SM::SimpleMarkup#convert の後に実行します。
@see SM::SimpleMarkup#convert -
OpenURI
:: Meta # content _ type -> String (46369.0) -
対象となるリソースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。 Content-Type ヘッダがない場合は、"application/octet-stream" を返します。
対象となるリソースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content-Type ヘッダがない場合は、"application/octet-stream" を返します。
//emlist[例][ruby]{
require 'open-uri'
open('http://www.ruby-lang.org/') {|f|
p f.content_type #=> "text/html"
}
//} -
Net
:: HTTPHeader # content _ type -> String|nil (46327.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... -
WEBrick
:: HTTPResponse # content _ type -> String | nil (46255.0) -
Content-Type ヘッダの値を返します。
Content-Type ヘッダの値を返します。 -
WIN32OLE
_ TYPE # helpstring -> String | nil (46222.0) -
型のドキュメント文字列を取得します。
型のドキュメント文字列を取得します。
@return ドキュメント文字列を返します。未定義の場合はnilを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Internet Controls', 'IWebBrowser')
p tobj.helpstring # => "Web Browser interface"
ドキュメント文字列は、コンテキストヘルプなどに利用可能な型の簡単な説明文です。 -
Gem
:: Package :: TarHeader # typeflag -> String (46204.0) -
tar のヘッダに含まれる typeflag を返します。
tar のヘッダに含まれる typeflag を返します。 -
Net
:: IMAP :: BodyTypeBasic # language -> String | [String] | nil (46204.0) -
1766 で定義されているボディ言語を表わす 文字列もしくは文字列の配列を返します。
1766 で定義されているボディ言語を表わす
文字列もしくは文字列の配列を返します。 -
Net
:: IMAP :: BodyTypeMultipart # language -> String | [String] | nil (46204.0) -
1766 で定義されているボディ言語を表わす 文字列もしくは文字列の配列を返します。
1766 で定義されているボディ言語を表わす
文字列もしくは文字列の配列を返します。 -
Net
:: IMAP :: BodyTypeText # language -> String | [String] | nil (46204.0) -
1766 で定義されているボディ言語を表わす 文字列もしくは文字列の配列を返します。
1766 で定義されているボディ言語を表わす
文字列もしくは文字列の配列を返します。 -
WIN32OLE
_ TYPE # typekind -> Integer (45994.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 :: BodyTypeMessage # media _ subtype -> String (45922.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see Net::IMAP::BodyTypeMessage#media_type -
Net
:: IMAP :: BodyTypeMessage # subtype -> String (45922.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see Net::IMAP::BodyTypeMessage#media_type -
Net
:: IMAP :: BodyTypeMessage # media _ type -> String (45907.0) -
MIME のメディアタイプを返します。
MIME のメディアタイプを返します。
これは "MESSAGE" を返します。
@see Net::IMAP::BodyTypeMessage#subtype -
Net
:: IMAP :: BodyTypeBasic # encoding -> String (45904.0) -
Content-Transfer-Encoding の値を文字列で返します。
Content-Transfer-Encoding の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeMessage # content _ id -> String | nil (45904.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeMessage # encoding -> String (45904.0) -
Content-Transfer-Encoding の値を文字列で返します。
Content-Transfer-Encoding の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeText # encoding -> String (45904.0) -
Content-Transfer-Encoding の値を文字列で返します。
Content-Transfer-Encoding の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeMessage # lines -> Integer (45604.0) -
ボディのテキストの行数を返します。
ボディのテキストの行数を返します。 -
WIN32OLE
_ METHOD # helpstring -> String | nil (37222.0) -
メソッドのヘルプ文字列を取得します。
メソッドのヘルプ文字列を取得します。
helpstringは、IDEがメソッドのバルーンヘルプを表示するような場合に利用可
能な、1行程度でメソッドを説明する文字列です。
@return ヘルプ文字列を返します。未定義ならばnilを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Internet Controls', 'IWebBrowser')
method = WIN32OLE_METHOD.new(tobj, 'Navigate')
puts method.helpstring # => Navigates to a URL o... -
WIN32OLE
_ TYPE # ole _ type -> String | nil (36979.0) -
selfの型の種類(TYPEKIND)を取得します。
selfの型の種類(TYPEKIND)を取得します。
@return selfの型の種類を文字列で返します。情報が取得できない場合はnilを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Application')
p tobj.ole_type # => Class
ole_typeには以下があります。
: Enum
列挙子(0)
: Record
ユーザ定義型(メソッドを持たない構造体)(1)
: Module
モジュール(静的関数やデータだけを保持)(2)
: In... -
WIN32OLE
_ METHOD # return _ type _ detail -> [String] (36961.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を要素と
... -
CGI
:: QueryExtension # auth _ type -> String (36955.0) -
ENV['AUTH_TYPE'] を返します。
ENV['AUTH_TYPE'] を返します。 -
Net
:: HTTPHeader # main _ type -> String|nil (36943.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"
//} -
WIN32OLE
_ METHOD # return _ type -> String (36943.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... -
WIN32OLE
_ TYPE # src _ type -> String | nil (36943.0) -
selfが他の型の別名ならば、元の型名を取得します。
selfが他の型の別名ならば、元の型名を取得します。
@return selfが別名ならば元の型名を文字列で返します。別名でなければnilを
返します。
tobj = WIN32OLE_TYPE.new('Microsoft Office 14.0 Object Library', 'MsoRGBType')
p tobj.src_type # => "I4"
この例は、OfficeのMsoRGBType型は符号付き32ビット整数(I4)の別名だとい
うことを示します。 -
Net
:: IMAP :: BodyTypeBasic # media _ subtype -> String (36922.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see Net::IMAP::BodyTypeBasic#media_type -
Net
:: IMAP :: BodyTypeBasic # subtype -> String (36922.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see Net::IMAP::BodyTypeBasic#media_type -
Net
:: IMAP :: BodyTypeMultipart # media _ subtype -> String (36922.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see 2045, Net::IMAP::BodyTypeText#media_type -
Net
:: IMAP :: BodyTypeMultipart # subtype -> String (36922.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see 2045, Net::IMAP::BodyTypeText#media_type -
Net
:: IMAP :: BodyTypeText # media _ subtype -> String (36922.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see Net::IMAP::BodyTypeText#media_type -
Net
:: IMAP :: BodyTypeText # subtype -> String (36922.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see Net::IMAP::BodyTypeText#media_type -
Socket
:: AncillaryData # unix _ rights -> [IO] | nil (36922.0) -
Unix domain socket の SCM_RIGHTS 制御メッセージに含まれる ファイルディスクリプタを IO オブジェクトの配列として返します。
Unix domain socket の SCM_RIGHTS 制御メッセージに含まれる
ファイルディスクリプタを IO オブジェクトの配列として返します。
得られる IO オブジェクトか IO か Socket です。
この配列は Socket::AncillaryData が初期化されたときに
作られます。例えば BasicSocket#recvmsg を :scm_rights => true
オプションを付けて呼びだし、
SCM_RIGHTS な 制御メッセージを受け取ったときに配列が作られます。
適切なオプションを指定しなかった場合は配列は生成されず、
このメソッドは nil... -
WIN32OLE
_ METHOD # return _ vtype -> Integer (36922.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... -
Net
:: IMAP :: BodyTypeBasic # media _ type -> String (36907.0) -
MIME のメディアタイプを返します。
MIME のメディアタイプを返します。
@see Net::IMAP::BodyTypeBasic#subtype -
Net
:: IMAP :: BodyTypeMultipart # media _ type -> String (36907.0) -
MIME のメディアタイプを返します。
MIME のメディアタイプを返します。
"MULTIPART" を返します。
@see Net::IMAP::BodyTypeMultipart#subtype -
Net
:: IMAP :: BodyTypeText # media _ type -> String (36907.0) -
MIME のメディアタイプを返します。
MIME のメディアタイプを返します。
これは "TEXT" を返します。
@see Net::IMAP::BodyTypeText#subtype -
Net
:: IMAP :: BodyTypeBasic # content _ id -> String | nil (36904.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeText # content _ id -> String | nil (36904.0) -
Content-ID の値を文字列で返します。
Content-ID の値を文字列で返します。
@see 2045 -
CGI
:: HtmlExtension # image _ button(src = "" , name = nil , alt = nil) -> String (36643.0) -
タイプが image の input 要素を生成します。
タイプが image の input 要素を生成します。
@param src src 属性の値を指定します。
@param name name 属性の値を指定します。
@param alt alt 属性の値を指定します。
例:
image_button("url")
# <INPUT TYPE="image" SRC="url">
image_button("url", "name", "string")
# <INPUT TYPE="image" SRC="url" NAME="name" ALT="string"> -
CGI
:: HtmlExtension # image _ button(attributes) -> String (36628.0) -
タイプが image の input 要素を生成します。
タイプが image の input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
image_button({ "SRC" => "url", "ALT" => "string" })
# <INPUT TYPE="image" SRC="url" ALT="string"> -
BasicSocket
# sendmsg(mesg , flags=0 , dest _ sockaddr=nil , *controls) -> Integer (36622.0) -
sendmsg(2) を用いてメッセージを送ります。
sendmsg(2) を用いてメッセージを送ります。
このメソッドはブロックします。ノンブロッキング方式で通信したい
場合は BasicSocket#sendmsg_nonblock を用います。
ソケットが connection-less の場合は dest_sockaddr で
通信先のアドレスを指定しなければなりません。Socket.sockaddr_in
の返り値や Addrinfo オブジェクトを引数として渡すことができます。
controls には 補助データ(ancillary data)を渡します。
Socket::AncillaryData のインスタンスや
3要素(c... -
WIN32OLE
_ TYPE # guid -> String | nil (36622.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 # progid -> String | nil (36622.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... -
Net
:: IMAP :: BodyTypeMessage # description -> String | nil (36604.0) -
Content-Description の値を文字列で返します。
Content-Description の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeMessage # disposition -> Net :: IMAP :: ContentDisposition | nil (36604.0) -
Content-Dispotition の値を返します。
Content-Dispotition の値を返します。
Net::IMAP::ContentDisposition オブジェクトを返します。
@see 1806, 2183 -
Net
:: IMAP :: BodyTypeMessage # envelope -> Net :: IMAP :: Envelpe | nil (36604.0) -
メッセージのエンベロープを返します。
メッセージのエンベロープを返します。 -
Net
:: IMAP :: BodyTypeText # lines -> Integer (36604.0) -
ボディの行数を返します。
ボディの行数を返します。 -
WIN32OLE
_ TYPELIB # guid -> String (36604.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 :: BodyTypeMessage # extension -> Array | nil (36304.0) -
メッセージの拡張データを返します。
メッセージの拡張データを返します。 -
Net
:: IMAP :: BodyTypeMessage # body -> Net :: IMAP :: BodyTypeBasic | Net :: IMAP :: BodyTypeMessage | Net :: IMAP :: BodyTypeText | Net :: IMAP :: BodyTypeMultipart (29704.0) -
ボディを返します。
ボディを返します。 -
Net
:: IMAP :: BodyTypeMessage # param -> { String => String } | nil (28204.0) -
MIME のボディパラメータをハッシュテーブルで返します。
MIME のボディパラメータをハッシュテーブルで返します。
ハッシュテーブルのキーがパラメータ名となります。
@see 2045 -
REXML
:: SAX2Listener # doctype(name , pub _ sys , long _ name , uri) -> () (28204.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) -> () (28204.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" の場... -
WIN32OLE
_ VARIABLE # ole _ type _ detail -> [String] (27997.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
_ PARAM # ole _ type -> String (27961.0) -
パラメータの型名を取得します。
パラメータの型名を取得します。
@return パラメータの型名を示す文字列を返します。
パラメータの型情報が見つからない場合は、"unknown type"を返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
param1 = method.params[0]
puts param1.ole_type # => VARIANT
OLEオートメーション... -
WIN32OLE
_ VARIABLE # ole _ type -> String (27961.0) -
変数の型を取得します。
変数の型を取得します。
@return 変数の型名を文字列で返します。型名を文字列に変換できない場合は、
「Unknown Type nn」(nnはバリアント型を示す数値)の形式の文字列
を返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'XlSheetType')
variables = tobj.variables
variables.each do |variable|
puts "#{variable.ole_type} #{variabl... -
Net
:: HTTPHeader # sub _ type -> String|nil (27943.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
_ PARAM # ole _ type _ detail -> [String] (27943.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(インターフ... -
REXML
:: Instruction # content -> String | nil (27940.0) -
XML 処理命令の内容を返します。
XML 処理命令の内容を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content... -
Net
:: FTP :: MLSxEntry # media _ type -> String|nil (27925.0) -
メディアタイプを返します。
メディアタイプを返します。
IANA media type の値を返します。
情報がない場合は nil を返します。 -
WIN32OLE
_ METHOD # event _ interface -> String | nil (27922.0) -
メソッドがイベントの場合、イベントのインターフェイス名を取得します。
メソッドがイベントの場合、イベントのインターフェイス名を取得します。
@return メソッドがイベントであれば、イベントのインターフェイス名を返し
ます。イベントでなければnilを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Workbook')
method = WIN32OLE_METHOD.new(tobj, 'SheetActivate')
puts method.event_interface # => WorkbookEvents -
WIN32OLE
_ TYPE # helpcontext -> Integer | nil (27922.0) -
この型に関連するヘルプファイルのトピックID(ヘルプコンテキスト)を取得 します。
この型に関連するヘルプファイルのトピックID(ヘルプコンテキスト)を取得
します。
@return 型に関連するヘルプコンテキストを整数で返します。ヘルプコンテキ
ストが登録されていない場合はnilを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
puts tobj.helpcontext # => 131185 -
Net
:: IMAP :: ContentDisposition # dsp _ type -> String (27907.0) -
Content-Disposition フィールドのタイプを文字列で返します。
Content-Disposition フィールドのタイプを文字列で返します。
"INLINE", "ATTACHMENT" などの文字列を返します。
詳しくは 2183 などを見てください。 -
Addrinfo
# socktype -> Integer (27904.0) -
ソケットタイプを整数で返します。
ソケットタイプを整数で返します。
require 'socket'
Addrinfo.tcp("localhost", 80).socktype == Socket::SOCK_STREAM #=> true -
Net
:: SMTP # capable _ auth _ types -> [String] (27904.0) -
接続したサーバで利用可能な認証を配列で返します。
接続したサーバで利用可能な認証を配列で返します。
返り値の配列の要素は、 'PLAIN', 'LOGIN', 'CRAM-MD5' です。
このメソッドは Net::SMTP#start などでセッションを開始
した以降にしか正しい値を返しません。 -
Pathname
# ftype -> String (27904.0) -
File.ftype(self.to_s) と同じです。
File.ftype(self.to_s) と同じです。
@see File.ftype -
REXML
:: DocType # entities -> { String => REXML :: Entity } (27904.0) -
DTD で宣言されている実体の集合を Hash で返します。
DTD で宣言されている実体の集合を Hash で返します。
返される Hash は実体参照名をキーとし、対応する REXML::Entity オブジェクト
を値とするハッシュテーブルです。
これには、XML のデフォルトの実体(gt, lt, quot, apos)も含まれています。
//emlist[][ruby]{
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE foo [
<!ENTITY bar "barbarbarbar">
]>
EOS
p doctype.entities # => { "gt" => #... -
Resolv
:: DNS # getresource(name , typeclass) -> Resolv :: DNS :: Resource (27904.0) -
nameに対応するDNSリソースレコードを取得します。 最初に見つかったリソースを返します。
nameに対応するDNSリソースレコードを取得します。
最初に見つかったリソースを返します。
typeclass は以下のいずれかです。
* Resolv::DNS::Resource::IN::ANY
* Resolv::DNS::Resource::IN::NS
* Resolv::DNS::Resource::IN::CNAME
* Resolv::DNS::Resource::IN::SOA
* Resolv::DNS::Resource::IN::HINFO
* Resolv::DNS::Resource::IN::MINFO
* Resolv::DNS... -
Resolv
:: DNS # getresources(name , typeclass) -> [Resolv :: DNS :: Resource] (27904.0) -
nameに対応するDNSリソースレコードを取得します。 見つかったリソース全てを配列にして返します。
nameに対応するDNSリソースレコードを取得します。
見つかったリソース全てを配列にして返します。
typeclass は以下のいずれかです。
* Resolv::DNS::Resource::IN::ANY
* Resolv::DNS::Resource::IN::NS
* Resolv::DNS::Resource::IN::CNAME
* Resolv::DNS::Resource::IN::SOA
* Resolv::DNS::Resource::IN::HINFO
* Resolv::DNS::Resource::IN::MINFO
* Resolv:... -
Shell
:: CommandProcessor # ftype(filename) -> String (27904.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.ftype -
WIN32OLE
_ VARIANT # vartype -> Integer (27904.0) -
selfの型情報を取得します。
selfの型情報を取得します。
型情報は、WIN32OLE::VARIANTの定数値の組み合わせです。
obj = WIN32OLE_VARIANT.new("string")
obj.vartype # => 8 (WIN32OLE::VARIANT::VT_BSTR)
bytes = WIN32OLE_VARIANT.new([1,2,3,4,5], VT_UI1 | VT_ARRAY)
bytes.vartype # => 8209 (WIN32OLE::VARIANT::VT_ARRAY | VT_UI1) -
CGI
:: HtmlExtension # checkbox _ group(name = "" , *values) -> String (27766.0) -
タイプが checkbox である input 要素のグループを生成します。
タイプが checkbox である input 要素のグループを生成します。
生成される input 要素の name 属性はすべて同じになり、
それぞれの input 要素の後ろにはラベルが続きます。
@param name name 属性の値を指定します。
@param values value 属性のリストを指定します。
それぞれの引数が、単純な文字列の場合、value 属性の値とラベルに同じものが使用されます。
それぞれの引数が、二要素または三要素の配列の場合、最終要素が true であれば、
... -
CGI
:: HtmlExtension # radio _ group(name = "" , *values) -> String (27766.0) -
タイプが radio である input 要素のリストを生成します。
タイプが radio である input 要素のリストを生成します。
生成される input 要素の name 属性はすべて同じになり、
それぞれの input 要素の後ろにはラベルが続きます。
@param name name 属性の値を指定します。
@param values value 属性のリストを指定します。
それぞれの引数が、単純な文字列の場合、value 属性の値とラベルに同じものが使用されます。
それぞれの引数が、二要素または三要素の配列の場合、最終要素が true であれば、
check... -
Socket
:: AncillaryData # cmsg _ is?(level , type) -> bool (27709.0) -
自身の level と type が引数のものと一致している場合に真を返します。
自身の level と type が引数のものと一致している場合に真を返します。
require 'socket'
ancdata = Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "")
ancdata.cmsg_is?(Socket::IPPROTO_IPV6, Socket::IPV6_PKTINFO) #=> true
ancdata.cmsg_is?(:IPV6, :PKTINFO) #=> true
ancdata.cmsg_is?(:IP, :PKTINFO) #=> fa... -
WIN32OLE
_ TYPE # inspect -> String (27694.0) -
selfを説明的な文字列で表現します。
selfを説明的な文字列で表現します。
@return "#<WIN32OLE_TYPE"とWIN32OLE_TYPE#to_sの結果を「:」で結合
し、「>」で閉じた文字列を返します。
x = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
puts x.inspect #=> #<WIN32OLE_TYPE:Worksheet>
@see WIN32OLE_TYPE#to_s -
CGI
:: HtmlExtension # hidden(name = "" , value = nil) -> String (27643.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"> -
CGI
:: HtmlExtension # radio _ button(name = "" , value = nil , checked = nil) -> String (27643.0) -
タイプが radio である input 要素を生成します。
タイプが radio である input 要素を生成します。
@param name name 属性の値を指定します。
@param value value 属性の値を指定します。
@param checked 真ならば checked 属性を設定します。
例:
radio_button("name", "value")
# <INPUT TYPE="radio" NAME="name" VALUE="value">
radio_button("name", "value", true)
# <INPUT TYPE="radio" NAME="name" ... -
Net
:: HTTP # get2(path , header = nil) -> Net :: HTTPResponse (27640.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という
形のハッシュでなければいけません。
ブロックとともに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズに分けて取... -
Net
:: HTTP # get2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (27640.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という
形のハッシュでなければいけません。
ブロックとともに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズに分けて取... -
Net
:: HTTP # request _ get(path , header = nil) -> Net :: HTTPResponse (27640.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という
形のハッシュでなければいけません。
ブロックとともに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズに分けて取... -
Net
:: HTTP # request _ get(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (27640.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という
形のハッシュでなければいけません。
ブロックとともに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズに分けて取... -
REXML
:: Instruction # target -> String (27640.0) -
XML 処理命令のターゲットを返します。
XML 処理命令のターゲットを返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "t... -
CGI
:: HtmlExtension # checkbox _ group(attributes) -> String (27631.0) -
タイプが checkbox である input 要素のグループを生成します。
タイプが checkbox である input 要素のグループを生成します。
生成される input 要素の name 属性はすべて同じになり、
それぞれの input 要素の後ろにはラベルが続きます。
@param attributes 属性をハッシュで指定します。
例:
checkbox_group({ "NAME" => "name",
"VALUES" => ["foo", "bar", "baz"] })
checkbox_group({ "NAME" => "name",
"VALUES"... -
CGI
:: HtmlExtension # radio _ group(attributes) -> String (27631.0) -
タイプが radio である input 要素のリストを生成します。
タイプが radio である input 要素のリストを生成します。
生成される input 要素の name 属性はすべて同じになり、
それぞれの input 要素の後ろにはラベルが続きます。
@param attributes 属性をハッシュで指定します。
例:
radio_group({ "NAME" => "name",
"VALUES" => ["foo", "bar", "baz"] })
radio_group({ "NAME" => "name",
"VALUES" => [["foo"], [... -
CGI
:: HtmlExtension # hidden(attributes) -> String (27628.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 # radio _ button(attributes) -> String (27628.0) -
タイプが radio である input 要素を生成します。
タイプが radio である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
radio_button({ "NAME" => "name", "VALUE" => "value", "ID" => "foo" })
# <INPUT TYPE="radio" NAME="name" VALUE="value" ID="foo"> -
WIN32OLE
_ TYPE # major _ version -> Integer (27622.0) -
型のメジャーバージョン番号を取得します。
型のメジャーバージョン番号を取得します。
@return 型のメジャーバージョン番号を整数で返します。
@raise WIN32OLERuntimeError 型属性の読み取りに失敗すると通知します。
tobj = WIN32OLE_TYPE.new('Microsoft Word 14.0 Object Library', 'Documents')
p tobj.major_version # => 8 -
WIN32OLE
_ TYPE # minor _ version -> Integer (27622.0) -
型のマイナーバージョン番号を取得します。
型のマイナーバージョン番号を取得します。
@return 型のマイナーバージョン番号を整数で返します。
@raise WIN32OLERuntimeError 型属性の読み取りに失敗すると通知します。
tobj = WIN32OLE_TYPE.new('Microsoft Word 14.0 Object Library', 'Documents')
p tobj.minor_version # => 5 -
WIN32OLE
_ TYPE # name -> String (27622.0) -
selfの型名を取得します。
selfの型名を取得します。
@return selfの型名を文字列で返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Application')
p tobj.name # => "Application" -
Net
:: IMAP :: BodyTypeBasic # description -> String | nil (27604.0) -
Content-Description の値を文字列で返します。
Content-Description の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeMessage # md5 -> String | nil (27604.0) -
ボディの MD5 値を文字列で返します。
ボディの MD5 値を文字列で返します。 -
Net
:: IMAP :: BodyTypeMessage # size -> Integer (27604.0) -
ボディのサイズのオクテット数を返します。
ボディのサイズのオクテット数を返します。