クラス
- ERB (3)
-
OpenSSL
:: PKCS7 :: RecipientInfo (1) -
OpenSSL
:: PKCS7 :: SignerInfo (2) -
OpenSSL
:: X509 :: Name (1) -
Resolv
:: DNS (9) -
Resolv
:: DNS :: Name (3) -
Resolv
:: DNS :: Resource :: DomainName (1) -
Resolv
:: DNS :: Resource :: IN :: SRV (1) -
Resolv
:: DNS :: Resource :: MX (1) -
Resolv
:: DNS :: Resource :: SOA (2) -
Resolv
:: IPv4 (1) -
Resolv
:: IPv6 (1) -
URI
:: LDAP (2)
モジュール
- Kernel (2)
キーワード
- absolute? (1)
-
check
_ signedness (2) -
def
_ class (1) -
def
_ method (1) -
def
_ module (1) - dn= (1)
-
each
_ address (1) -
each
_ name (1) -
each
_ resource (1) - exchange (1)
- getaddress (1)
- getaddresses (1)
- getname (1)
- getnames (1)
- getresource (1)
- getresources (1)
- issuer (2)
- mname (1)
- rname (1)
-
subdomain
_ of? (1) - target (1)
-
to
_ name (2) -
to
_ s (2)
検索結果
先頭5件
-
Resolv
:: DNS :: Resource :: DomainName # name -> Resolv :: DNS :: Name (72910.0) -
ドメイン名を返します。
ドメイン名を返します。 -
URI
:: LDAP # dn -> String (54355.0) -
自身の Distinguished Name を文字列で返します。
自身の Distinguished Name を文字列で返します。 -
OpenSSL
:: PKCS7 :: SignerInfo # name -> OpenSSL :: X509 :: Name (45661.0) -
署名者の証明書の発行者の名前(DN)を返します。
署名者の証明書の発行者の名前(DN)を返します。
これと OpenSSL::PKCS7::SignerInfo#serial で
署名者を一意に識別します。 -
Resolv
:: DNS # getname(address) -> Resolv :: DNS :: Name (27907.0) -
IP アドレス address のホスト名をルックアップし、 ルックアップ結果の最初のホスト名を返します。
IP アドレス address のホスト名をルックアップし、
ルックアップ結果の最初のホスト名を返します。
@param address IPアドレスを文字列、 Resolv::IPv4 のインスタンス、
Resolv::IPv6 のインスタンス、のいずれか与えます。
@raise Resolv::ResolvError ルックアップに失敗したときに発生します。 -
Resolv
:: DNS # getnames(address) -> [Resolv :: DNS :: Name] (27907.0) -
IP アドレス address のホスト名をルックアップし、 ルックアップ結果のホスト名リストを返します。
IP アドレス address のホスト名をルックアップし、
ルックアップ結果のホスト名リストを返します。
@param address IPアドレスを文字列、 Resolv::IPv4 のインスタンス、
Resolv::IPv6 のインスタンス、のいずれか与えます。 -
Resolv
:: DNS :: Resource :: SOA # mname -> Resolv :: DNS :: Name (27907.0) -
対象のゾーンのマスターゾーンファイルが存在するホスト名を返します。
対象のゾーンのマスターゾーンファイルが存在するホスト名を返します。 -
Resolv
:: DNS :: Resource :: SOA # rname -> Resolv :: DNS :: Name (27907.0) -
対象のドメイン名の管理者名を返します。
対象のドメイン名の管理者名を返します。 -
Resolv
:: DNS # each _ name(address) {|name| . . . } -> () (27610.0) -
IP アドレス address のホスト名をルックアップし、 各ルックアップ結果のホスト名に対してブロックを評価します。
IP アドレス address のホスト名をルックアップし、
各ルックアップ結果のホスト名に対してブロックを評価します。
@param address IPアドレスを文字列、 Resolv::IPv4 のインスタンス、
Resolv::IPv6 のインスタンス、のいずれか与えます。 -
Resolv
:: IPv4 # to _ name -> Resolv :: DNS :: Name (18910.0) -
"x.y.z.w.in-addr.arpa." という形のドメイン名を返します。
"x.y.z.w.in-addr.arpa." という形のドメイン名を返します。 -
Resolv
:: IPv6 # to _ name -> Resolv :: DNS :: Name (18910.0) -
"h.g.f.e.d.c.b.a.ip6.arpa." という DNS 名を返します。
"h.g.f.e.d.c.b.a.ip6.arpa." という DNS 名を返します。 -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (18400.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 (18400.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... -
URI
:: LDAP # dn=(s) (18373.0) -
自身の Distinguished Name を文字列で設定します。
自身の Distinguished Name を文字列で設定します。
@param s 自身の Distinguished Name を文字列で指定します。 -
Resolv
:: DNS :: Name # subdomain _ of?(other) -> bool (18130.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... -
Resolv
:: DNS :: Name # absolute? -> bool (18004.0) -
絶対パス形式であるかどうかを返します。
絶対パス形式であるかどうかを返します。 -
Resolv
:: DNS :: Name # to _ s -> String (18004.0) -
ドメイン名を文字列として返します。
ドメイン名を文字列として返します。
絶対パス形式であっても返される文字列には最後のドットは含まれません。 -
Resolv
:: DNS # each _ address(name) {|name| . . . } -> () (9694.0) -
ホスト名 name の IP アドレスをルックアップし、 各ルックアップ結果のアドレスに対してブロックを評価します。
ホスト名 name の IP アドレスをルックアップし、
各ルックアップ結果のアドレスに対してブロックを評価します。
@param name ホスト名を文字列もしくはResolv::DNS::Nameのインスタンスで与えます。 -
Resolv
:: DNS # getresource(name , typeclass) -> Resolv :: DNS :: Resource (9691.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] (9691.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:... -
Resolv
:: DNS :: Resource :: IN :: SRV # target -> Resolv :: DNS :: Name (9607.0) -
対象のホストのホスト名を返します。
対象のホストのホスト名を返します。 -
Resolv
:: DNS :: Resource :: MX # exchange -> Resolv :: DNS :: Name (9607.0) -
MXのホスト名を返します。
MXのホスト名を返します。 -
Resolv
:: DNS # each _ resource(name , typeclass) {|resource| . . . } -> () (9391.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
* Res... -
Resolv
:: DNS # getaddress(name) -> Resolv :: IPv4 | Resolv :: IPv6 (9391.0) -
ホスト名 name の IP アドレスをルックアップし、 ルックアップ結果の最初のアドレスを返します。
ホスト名 name の IP アドレスをルックアップし、
ルックアップ結果の最初のアドレスを返します。
@param name ホスト名を文字列もしくはResolv::DNS::Nameのインスタンスで与えます。
@raise Resolv::ResolvError ルックアップに失敗したときに発生します。 -
Resolv
:: DNS # getaddresses(name) -> [Resolv :: IPv4 | Resolv :: IPv6] (9391.0) -
ホスト名 name の IP アドレスをルックアップし、 ルックアップ結果のアドレスリストを返します。
ホスト名 name の IP アドレスをルックアップし、
ルックアップ結果のアドレスリストを返します。
ルックアップに失敗した場合は空の配列が返されます。
@param name ホスト名を文字列もしくはResolv::DNS::Nameのインスタンスで与えます。 -
OpenSSL
:: X509 :: Name # to _ s(flags=nil) -> String (9214.0) -
DNの文字列表現を返します。
DNの文字列表現を返します。
flags には通常は以下のいずれかを渡します。
* nil
* OpenSSL::X509::Name::COMPAT
* OpenSSL::X509::Name::RFC2253
* OpenSSL::X509::Name::ONELINE
* OpenSSL::X509::Name::MULTILINE
*
例:
require 'openssl'
n = OpenSSL::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN... -
ERB
# def _ method(mod , methodname , fname=& # 39;(ERB)& # 39;) -> nil (904.0) -
変換した Ruby スクリプトをメソッドとして定義します。
変換した Ruby スクリプトをメソッドとして定義します。
定義先のモジュールは mod で指定し、メソッド名は methodname で指定します。
fname はスクリプトを定義する際のファイル名です。主にエラー時に活躍します。
@param mod メソッドを定義するモジュール(またはクラス)
@param methodname メソッド名
@param fname スクリプトを定義する際のファイル名
例:
require 'erb'
erb = ERB.new(script)
erb.def_method(MyClass, 'foo(bar)', 'foo.e... -
ERB
# def _ class(superklass=Object , methodname=& # 39;erb& # 39;) -> Class (604.0) -
変換した Ruby スクリプトをメソッドとして定義した無名のクラスを返します。
変換した Ruby スクリプトをメソッドとして定義した無名のクラスを返します。
@param superklass 無名クラスのスーパークラス
@param methodname メソッド名
//emlist[例][ruby]{
require 'erb'
class MyClass_
def initialize(arg1, arg2)
@arg1 = arg1; @arg2 = arg2
end
end
filename = 'example.rhtml' # @arg1 と @arg2 が使われている example.rhtml
erb = ERB.n... -
ERB
# def _ module(methodname=& # 39;erb& # 39;) -> Module (604.0) -
変換した Ruby スクリプトをメソッドとして定義した無名のモジュールを返します。
変換した Ruby スクリプトをメソッドとして定義した無名のモジュールを返します。
@param methodname メソッド名
//emlist[例][ruby]{
require 'erb'
filename = 'example.rhtml'
erb = ERB.new("test1<%= arg1 %>\ntest2<%= arg2 %>\n")
erb.filename = filename
MyModule = erb.def_module('render(arg1, arg2)')
class MyClass
include MyModule
end
print My... -
OpenSSL
:: PKCS7 :: SignerInfo # issuer -> OpenSSL :: X509 :: Name (361.0) -
署名者の証明書の発行者の名前(DN)を返します。
署名者の証明書の発行者の名前(DN)を返します。
これと OpenSSL::PKCS7::SignerInfo#serial で
署名者を一意に識別します。 -
OpenSSL
:: PKCS7 :: RecipientInfo # issuer -> OpenSSL :: X509 :: Name (355.0) -
送信先の証明書の発行者の名前(DN)を返します。
送信先の証明書の発行者の名前(DN)を返します。
これと OpenSSL::PKCS7::RecipientInfo#serial で
送信先を一意に識別します。