るりまサーチ

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

別のキーワード

  1. zlib os_code
  2. error code
  3. net/http code
  4. net/imap code
  5. ftp return_code

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Net::IMAP::ResponseText#code -> Net::IMAP::ResponseCode | nil (18201.0)

レスポンスコードを返します。

...レスポンスコードを返します。

応答がレスポンスコードを含んでいない場合は nil を返します。

@see Net::IMAP::ResponseCode...

Net::HTTPResponse#code -> String (18107.0)

HTTP のリザルトコードです。例えば '302' などです。

...スオブジェクトがどのクラスのインスタンスかを
見ることでもレスポンスの種類を判別できます。

//emlist[例][ruby]{
require 'net/http'

uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.code # => "200"
//}...

Win32::Registry::Error#code (18101.0)

@todo

@todo

String#codepoints {|codepoint| block } -> self (6200.0)

文字列の各コードポイントの配列を返します。(self.each_codepoint.to_a と同じです)

...の配列を返します。(self.each_codepoint.to_a と同じです)

//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".codepoints
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
//}

ブロックが指定された場合は String#each_codepoint と同じように動作しま...
...す。

Ruby 2.6 までは deprecated の警告が出ますが、Ruby 2.7 で警告は削除されました。

@see String#each_codepoint...

String#each_codepoint {|codepoint| block } -> self (6200.0)

文字列の各コードポイントに対して繰り返します。

...ます。

//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
"hello わーるど".encode('euc-jp').each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 42223, 41404, 42219, 42185]
//}

@see String#codepoints...

絞り込み条件を変える

StringIO#codepoints {|codepoint| ... } -> self (6200.0)

自身の各コードポイントに対して繰り返します。

...自身の各コードポイントに対して繰り返します。

@see IO#each_codepoint...

StringIO#each_codepoint {|codepoint| ... } -> self (6200.0)

自身の各コードポイントに対して繰り返します。

...自身の各コードポイントに対して繰り返します。

@see IO#each_codepoint...

Zlib::OS_CODE -> Integer (6117.0)

Zlib::GzipFile#os_code メソッドの返す値です。

...Zlib::GzipFile#os_code メソッドの返す値です。...

Net::HTTPResponse::CODE_CLASS_TO_OBJ -> Hash (6107.0)

HTTP レスポンスステータスコードの最初の数字からレスポンスのクラス(分類)を あらわすクラスへのハッシュです。

...HTTP レスポンスステータスコードの最初の数字からレスポンスのクラス(分類)を
あらわすクラスへのハッシュです。

//emlist[][ruby]{
require 'net/http'
Net::HTTPResponse::CODE_CLASS_TO_OBJ['3'] # => Net::HTTPRedirection
//}...
<< 1 2 3 ... > >>