66件ヒット
[1-66件を表示]
(0.053秒)
別のキーワード
種類
- インスタンスメソッド (42)
- 文書 (15)
- 特異メソッド (6)
- ライブラリ (2)
- クラス (1)
ライブラリ
- e2mmap (12)
- logger (1)
- rubygems (24)
-
rubygems
/ command (12)
クラス
-
Gem
:: Command (12) -
Gem
:: LoadError (24)
モジュール
キーワード
- Application (1)
-
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 3
. 0 . 0 (5) -
def
_ exception (12) -
minitest
/ unit (1) - name= (12)
-
show
_ lookup _ failure (12) -
test
/ unit (1)
検索結果
先頭5件
- Gem
:: LoadError # name -> String - Gem
:: LoadError # name=(gem _ name) - Gem
:: Command # show _ lookup _ failure(gem _ name , version , errors = nil) -> () - Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class - Exception2MessageMapper
. def _ exception(klass , exception _ name , message _ format , superklass = StandardError) -> Class
-
Gem
:: LoadError # name -> String (24117.0) -
ロードに失敗した Gem の名前を返します。
...ロードに失敗した Gem の名前を返します。... -
Gem
:: LoadError # name=(gem _ name) (12337.0) -
ロードに失敗した Gem の名前をセットします。
...ロードに失敗した Gem の名前をセットします。
@param gem_name Gem の名前を指定します。... -
Gem
:: Command # show _ lookup _ failure(gem _ name , version , errors = nil) -> () (3348.0) -
Gem が見つからなかった場合、メッセージを表示するために使用するメソッドです。
...
Gem が見つからなかった場合、メッセージを表示するために使用するメソッドです。
@param gem_name Gem の名前を指定します。
@param version Gem のバージョンを指定します。
@param errors Gem が見つからなかった理由を表すオブジェ... -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (3223.0) -
exception_name という名前の例外クラスを定義します。
...exception_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定......します。
省略すると StandardError を使用します。... -
Exception2MessageMapper
. def _ exception(klass , exception _ name , message _ format , superklass = StandardError) -> Class (3223.0) -
exception_name という名前の例外クラスを定義します。
...exception_name という名前の例外クラスを定義します。
@param klass 一階層上となるクラス名を指定します。
@param exception_name 例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマットを指定しま......el.#sprintf のフォーマット文字列と同じ形式を使用できます。
@param superklass 定義する例外クラスのスーパークラスを指定します。
省略すると StandardError を使用します。
@return 定義した例外クラスを返します。... -
NEWS for Ruby 2
. 3 . 0 (48.0) -
NEWS for Ruby 2.3.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...--debug または --debug=frozen-string-literal を付けて実行すると、
freeze された文字列を操作しようとして RuntimeError が発生したときにそのオブジェクトが生成された位置を表示します。
11725
* safe navigation operator (ぼっち......obj&.attr += 1
//}
* did_you_mean gem:
* 名前のタイポによって NameError や NoMethodError が起きたときに、自動的に他の似た名前を提案してくれます。
//emlist{
"Yuki".starts_with?("Y")
# => NoMethodError: undefined method `starts_with?' for "......価した要素を返します。
11498
* Module
* Module#deprecate_constant を追加
11398
* NameError
* レシーバーオブジェクトを返す NameError#receiver を追加
10881
* Numeric
* Numeric#positive?, Numeric#negative? を追加
11151
*... -
test
/ unit (42.0) -
ユニットテストを行うためのライブラリです。
...ユニットテストを行うためのライブラリです。
このライブラリは 2.2.0 からbundled gem(gemファイルのみを同梱)になりまし
た。詳しい内容は下記のプロジェクトページを参照してください。
* Test::Unit - Ruby用単体テストフレ......pected but was
<"foo">.
2 tests, 2 assertions, 1 failures, 0 errors, 0 skips
test_bar だけテストしたい場合は以下のようなオプションを与えます。
$ ruby test_foo.rb --name test_bar
Loaded suite test_foo
Started
F
Fi......test_bar(TC_Foo) [test_foo.rb:16]:
<"bar"> expected but was
<"foo">.
1 tests, 1 assertions, 1 failures, 0 errors, 0 skips
--name=test_barのような指定は行えません。
以下のようにすると help も表示されます。
$ ruby test_foo.rb --help... -
NEWS for Ruby 3
. 0 . 0 (36.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...rd arguments are now separated from positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matches......ption. 8709
* ENV
* ENV.except has been added, which returns a hash excluding the given keys and their values. 15822
* Windows: Read ENV names and values as UTF-8 encoded Strings 12650
* Encoding
* Added new encoding IBM720. 16233
* Changed default for Encoding.default_externa......lly discouraged. Read OpenStruct@Caveats section.
* Pathname
* Ractor compatible.
* Psych
* Update to Psych 3.3.0
* This version is Ractor compatible.
* Reline
* Update to Reline 0.1.5
* RubyGems
* Update to RubyGems 3.2.3
* StringIO
* Update to StringIO 3.0.0
*... -
minitest
/ unit (30.0) -
ユニットテストを行うためのライブラリです。
...n 0.000940 seconds.
1) Failure:
test_bar(TestFoo) [test_foo.rb:20]:
Expected "bar", not "foo".
2 tests, 2 assertions, 1 failures, 0 errors, 0 skips
test_bar だけテストしたい場合は以下のようなオプションを与えます。
$ ruby test_foo.rb -n test_bar
Loade......tests, 1 assertions, 1 failures, 0 errors, 0 skips
コンソールを使った testrunner のみ提供されています。
またヘルプを表示することもできません。
=== 使用可能なオプション
: -v
詳細を表示します。
: -n, --name
指定されたテストメソ......ます。
そうではなくて require 'minitest/unit' する場合は、テストクラスの定義時に親クラスを
MiniTest::Unit::TestCase にしなければなりません。
=== 注意
このライブラリは 2.2.0 で bundled gem(gemファイルのみを同梱)になりました。... -
Logger
:: Application (24.0) -
ユーザ定義のアプリケーションにログ機能を簡単に追加することができます。
...super('FooApp') # Name of the application.
end
def run
...
log(WARN, 'warning', 'my_method1')
...
@log.error('my_method2') { 'Error!' }
...
end
end
status = FooApp.new(....).start
=== 注意
このクラスは 2.2.0 で gem ライブラリと......して切り離されました。2.2.0
以降ではそちらを利用してください。
* https://rubygems.org/gems/logger-application...