るりまサーチ

最速Rubyリファレンスマニュアル検索!
909件ヒット [1-100件を表示] (0.137秒)

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils cp_r
  5. fileutils rm_r

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

OpenSSL::OCSP::Response#basic -> OpenSSL::OCSP::BasicResponse | nil (21302.0)

Response オブジェクトが保持している BasicResponse オブジェクトを 返します。

...Response オブジェクトが保持している BasicResponse オブジェクトを
返します。

@see OpenSSL::OCSP::BasicResponse...

BasicSocket#remote_address -> Addrinfo (15201.0)

getpeername(2) で得られたリモートアドレス情報を Addrinfo オブジェクトとして返します。

...tpeername(2) で得られたリモートアドレス情報を
Addrinfo オブジェクトとして返します。

返されたオブジェクトの Addrinfo#protocol は 0 を
返すことに注意してください。

r
equire 'socket'

TCPSocket.open("www.ruby-lang.org", 80) {|s|
p s.remo...
...te_address #=> #<Addrinfo: 221.186.184.68:80 TCP>
}

TCPServer.open("127.0.0.1", 1728) {|serv|
c = TCPSocket.new("127.0.0.1", 1728)
s = serv.accept
p s.remote_address #=> #<Addrinfo: 127.0.0.1:36504 TCP>
}

@see BasicSocket#getpeername...

Net::HTTPHeader#proxy_basic_auth(account, password) -> [String] (12214.0)

Proxy 認証のために Proxy-Authorization: ヘッダをセットします。

...Proxy 認証のために Proxy-Authorization: ヘッダをセットします。

@param account アカウント名を文字列で与えます。
@param password パスワードを文字列で与えます。

//emlist[例][ruby]{
r
equire 'net/http'

uri = URI.parse('http://www.example.com/index.html...
...')
r
eq = Net::HTTP::Get.new(uri.request_uri)
r
eq.proxy_basic_auth("account", "password") # => ["Basic YWNjb3VudDpwYXNzd29yZA=="]
//}...

Net::IMAP::BodyTypeMultipart#parts -> [Net::IMAP::BodyTypeBasic | Net::IMAP::BodyTypeText | Net::IMAP::BodyTypeMessage | Net::IMAP::BodyTypeMultipart] (9301.0)

マルチパートの各部分を返します。

マルチパートの各部分を返します。

Net::HTTPHeader#basic_auth(account, password) -> [String] (9230.0)

Authorization: ヘッダを BASIC 認証用にセットします。

...Authorization: ヘッダを BASIC 認証用にセットします。

@param account アカウント名を文字列で与えます。
@param password パスワードを文字列で与えます。

//emlist[例][ruby]{
r
equire 'net/http'

uri = URI.parse('http://www.example.com/index.html')
r
eq = Net:...
...:HTTP::Get.new(uri.request_uri)
r
eq.basic_auth("user", "pass") # => ["Basic dXNlcjpwYXNz"]
//}...

絞り込み条件を変える

Net::IMAP::BodyTypeBasic#description -> String | nil (9201.0)

Content-Description の値を文字列で返します。

...Content-Description の値を文字列で返します。

@see 2045...

BasicObject#singleton_method_removed(name) -> object (9101.0)

特異メソッドが Module#remove_method に より削除された時にインタプリタから呼び出されます。

...Module#remove_method に
より削除された時にインタプリタから呼び出されます。

通常のメソッドの削除に対するフックには
Module#method_removedを使います。

@param name 削除されたメソッド名が Symbol で渡されます。

//emlist[例][ruby]{
c...
...def singleton_method_removed(name)
puts "singleton method \"#{name}\" was removed"
end
end

obj = Foo.new
def obj.foo
end

class << obj
r
emove_method :foo
end

#=> singleton method "foo" was removed
//}

@see Module#method_removed,BasicObject#singleton_method_added,BasicObject#singleton_meth...

BasicSocket#connect_address -> Addrinfo (9101.0)

ローカルマシン内で接続するのに適当なアドレスを Addrinfo オブジェクトで返します。

...ローカルマシン内で接続するのに適当なアドレスを Addrinfo
オブジェクトで返します。

Basic
Socket#local_address の返り値
以下の点を除いては同じものを返します。
* IPv4 の不定アドレス(0.0.0.0) は IPv4 のループバックアドレス(12...
...される

Basic
Socket#local_address が接続先として不適なアドレスを返す場合は
例外 SocketError が発生します。

r
equire 'socket'

Addrinfo.tcp("0.0.0.0", 0).listen {|serv|
p serv.connect_address #=> #<Addrinfo: 127.0.0.1:53660 TCP>
serv.connect_address.connect...
...{|c|
s, _ = serv.accept
p [c, s] #=> [#<Socket:fd 4>, #<Socket:fd 6>]
}
}


@raise SocketError アドレスが接続に不適な場合に返します
@see BasicSocket#local_address...

BasicSocket#do_not_reverse_lookup -> bool (9101.0)

ソケットごとのアドレスからホスト名への逆引きの設定を返します。

...
Basic
Socket.do_not_reverse_lookup の値になります。

r
equire 'socket'

Basic
Socket.do_not_reverse_lookup = false
TCPSocket.open("www.ruby-lang.org", 80) {|sock|
p sock.do_not_reverse_lookup # => false
}
Basic
Socket.do_not_reverse_lookup = true
TCPSocket.open("www.ruby...
...-lang.org", 80) {|sock|
p sock.do_not_reverse_lookup # => true
}

@see BasicSocket#do_not_reverse_lookup=...
<< 1 2 3 ... > >>