607件ヒット
[1-100件を表示]
(0.129秒)
別のキーワード
ライブラリ
クラス
-
ARGF
. class (38) - IO (38)
-
Net
:: FTP (48) -
Net
:: HTTPResponse (12) -
Net
:: IMAP (12) -
Net
:: IMAP :: ResponseCode (24) -
Net
:: IMAP :: ResponseText (12) -
OpenSSL
:: Config (12) -
OpenSSL
:: OCSP :: BasicResponse (12) -
RDoc
:: CodeObject (156) - Refinement (4)
- String (153)
- StringIO (38)
-
URI
:: FTP (12) -
Zlib
:: GzipFile (12)
モジュール
-
CGI
:: HtmlExtension (24)
キーワード
- codepoints (66)
- comment (12)
- data (12)
-
document
_ children (12) -
document
_ self (12) - documented? (12)
- each (12)
-
each
_ codepoint (96) - encode (36)
- encode! (24)
- form (24)
-
import
_ methods (4) - kconv (12)
-
last
_ response (12) -
last
_ response _ code (12) - lastresp (12)
- name (12)
-
os
_ code (12) - parent (12)
-
parent
_ file _ name (12) -
parent
_ name (12) -
remove
_ classes _ and _ modules (12) -
remove
_ methods _ etc (12) -
return
_ code (12) - section (12)
-
start
_ doc (12) - status (12)
-
stop
_ doc (12) - typecode (12)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - xlist (12)
検索結果
先頭5件
-
Net
:: IMAP :: ResponseText # code -> Net :: IMAP :: ResponseCode | nil (18302.0) -
レスポンスコードを返します。
...レスポンスコードを返します。
応答がレスポンスコードを含んでいない場合は nil を返します。
@see Net::IMAP::ResponseCode... -
Net
:: HTTPResponse # code -> String (18208.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"
//}... -
String
# codepoints {|codepoint| block } -> self (6301.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 (6301.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 (6301.0) -
自身の各コードポイントに対して繰り返します。
...自身の各コードポイントに対して繰り返します。
@see IO#each_codepoint... -
StringIO
# each _ codepoint {|codepoint| . . . } -> self (6301.0) -
自身の各コードポイントに対して繰り返します。
...自身の各コードポイントに対して繰り返します。
@see IO#each_codepoint... -
ARGF
. class # each _ codepoint -> Enumerator (6219.0) -
self の各コードポイントに対して繰り返しブロックを呼びだします。
...します。
例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_codepoint # => #<Enumerator: ARGF:each_codepoint>
ARGF.each_codepoint{|e|print e, ","} # => 108,105,110,101,49,10,108,105,110,101,50... -
ARGF
. class # each _ codepoint { |c| . . . } -> self (6219.0) -
self の各コードポイントに対して繰り返しブロックを呼びだします。
...します。
例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_codepoint # => #<Enumerator: ARGF:each_codepoint>
ARGF.each_codepoint{|e|print e, ","} # => 108,105,110,101,49,10,108,105,110,101,50... -
Net
:: FTP # last _ response _ code -> String (6202.0) -
サーバからの最後の応答のコードを文字列で返します。
サーバからの最後の応答のコードを文字列で返します。
例えばログイン(Net::FTP#login)に成功した場合には
"230" を返します。
数字の意味は 959 参照してください。
@see Net::FTP#last_response