1338件ヒット
[1-100件を表示]
(0.102秒)
ライブラリ
クラス
-
ARGF
. class (38) - IO (38)
-
Net
:: FTP (60) -
Net
:: HTTPResponse (36) -
Net
:: IMAP (36) -
Net
:: IMAP :: ResponseCode (24) -
Net
:: IMAP :: ResponseText (12) -
OpenSSL
:: Config (12) -
OpenSSL
:: OCSP :: BasicResponse (12) -
RDoc
:: CodeObject (228) - Refinement (4)
- Regexp (22)
- String (153)
- StringIO (38)
-
URI
:: FTP (36) - WIN32OLE (12)
-
Win32
:: Registry :: Error (12) -
Zlib
:: GzipFile (12)
モジュール
- Base64 (72)
-
CGI
:: HtmlExtension (24) - Digest (12)
-
ERB
:: Util (12) - Kconv (12)
- Kernel (5)
-
OpenSSL
:: ASN1 (24) -
OpenSSL
:: X509 (12) -
RSS
:: ContentModel (24) - RakeFileUtils (24)
- URI (76)
-
WEBrick
:: HTTPStatus (96) - Zlib (12)
キーワード
-
$ KCODE (5) -
CODE
_ CLASS _ TO _ OBJ (12) -
CODE
_ TO _ OBJ (12) - CodeObject (12)
- Context (12)
- ConverterNotFoundError (12)
- MissingUnicodeSupport (12)
-
NEWS for Ruby 3
. 1 . 0 (4) - NKF (12)
-
OS
_ CODE (12) - ResponseCode (12)
-
V
_ ERR _ UNABLE _ TO _ DECODE _ ISSUER _ PUBLIC _ KEY (12) - [] (12)
-
client
_ error? (12) - codepage (12)
- codepoints (66)
- comment (12)
- comment= (12)
- compile (11)
-
content
_ encoded (12) -
content
_ encoded= (12) - data (12)
- decode (19)
- decode64 (12)
-
decode
_ all (12) -
decode
_ utf7 (12) -
decode
_ www _ form (12) -
decode
_ www _ form _ component (12) -
document
_ children (12) -
document
_ children= (12) -
document
_ self (12) -
document
_ self= (12) - documented? (12)
- each (12)
-
each
_ codepoint (96) - encode (43)
- encode! (24)
- encode64 (12)
-
encode
_ utf7 (12) -
encode
_ www _ form (12) -
encode
_ www _ form _ component (12) - error? (12)
- escape (7)
- form (24)
- hexencode (12)
-
import
_ methods (4) - info? (12)
- kconv (24)
-
last
_ response (12) -
last
_ response _ code (12) - lastresp (12)
- name (12)
- new (23)
- new2 (12)
- nowrite (12)
-
os
_ code (12) - parent (12)
- parent= (12)
-
parent
_ file _ name (12) -
parent
_ name (12) - rake (12)
-
rdoc
/ code _ object (12) -
rdoc
/ code _ objects (12) -
rdoc
/ generator / json _ index (12) -
reason
_ phrase (12) - redirect? (12)
-
remove
_ classes _ and _ modules (12) -
remove
_ methods _ etc (12) -
return
_ code (12) -
return
_ code= (12) -
rexml
/ document (12) - section (12)
- section= (12)
-
server
_ error? (12) -
start
_ doc (12) - status (12)
-
stop
_ doc (12) -
strict
_ decode64 (12) -
strict
_ encode64 (12) - success? (12)
-
test
/ unit (12) - typecode (12)
- typecode= (12)
- unescape (7)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) -
url
_ encode (12) -
urlsafe
_ decode64 (12) -
urlsafe
_ encode64 (12) - verbose (12)
- xlist (12)
検索結果
先頭5件
-
test
/ unit (26024.0) -
ユニットテストを行うためのライブラリです。
...参照してください。
* Test::Unit - Ruby用単体テストフレームワーク: https://test-unit.github.io/
なお、2.2.0より前のtest/unit は当時バンドルしていた minitest/unit を使って再実装し
ていましたが、上記のtest/unitと完全な互換性がある......ィングフレームワークの歴史(2014年版) https://www.clear-code.com/blog/2014/11/6.html
* RubyKaigi 2015:The history of testing framework in Ruby https://www.clear-code.com/blog/2015/12/12.html
=== 使い方
Test::Unit は以下のように使います。
まずテスト対象......テスト(test_foo.rb)を書きます。テストを実行するメソッド(テストメソッド)の名前は
全て test_ で始まる必要があります。テストメソッドが実行される前には setup メソッドが必ず
呼ばれます。実行されたあとには、teardown メ......史については以下が詳しくまとまっています。
* Rubyのテスティングフレームワークの歴史(2014年版) https://www.clear-code.com/blog/2014/11/6.html
* RubyKaigi 2015:The history of testing framework in Ruby https://www.clear-code.com/blog/2015/12/12.html... -
Net
:: IMAP :: ResponseText # code -> Net :: IMAP :: ResponseCode | nil (21301.0) -
レスポンスコードを返します。
...レスポンスコードを返します。
応答がレスポンスコードを含んでいない場合は nil を返します。
@see Net::IMAP::ResponseCode... -
Net
:: HTTPResponse # code -> String (21207.0) -
HTTP のリザルトコードです。例えば '302' などです。
...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 (21101.0) -
@todo
...@todo... -
RSS
:: ContentModel # content _ encoded (15200.0) -
@todo
...@todo... -
RSS
:: ContentModel # content _ encoded= (15200.0) -
@todo
...@todo... -
Base64
. # strict _ decode64(str) -> String (12400.0) -
与えられた文字列を Base64 デコードしたデータを返します。
...デコードしたデータを返します。
このメソッドは 4648 に対応しています。
@param str Base64 デコードする文字列を指定します。
@raise ArgumentError 与えられた引数が Base64 エンコードされたデータとして正しい形式ではない場... -
Base64
. # strict _ encode64(bin) -> String (12300.0) -
与えられたデータを Base64 エンコードした文字列を返します。
与えられたデータを Base64 エンコードした文字列を返します。
このメソッドは 4648 に対応しています。
改行コードを追加することはありません。
@param bin Base64 エンコードするデータを指定します。 -
String
# codepoints {|codepoint| block } -> self (12300.0) -
文字列の各コードポイントの配列を返します。(self.each_codepoint.to_a と同じです)
...ch_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...