41件ヒット
[1-41件を表示]
(0.010秒)
種類
- 文書 (17)
- インスタンスメソッド (12)
- 特異メソッド (12)
ライブラリ
- ビルトイン (24)
クラス
- Module (12)
オブジェクト
- main (12)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (5) - Ruby用語集 (12)
検索結果
-
main
. using(module) -> self (18119.0) -
引数で指定したモジュールで定義された拡張を有効にします。
...ents_rdoc.html#label-Scope
@param module 有効にするモジュールを指定します。
//emlist[例][ruby]{
module Sloth
refine String do
def downcase
self
end
end
end
"ABC".downcase # => "abc"
using Sloth
"ABC".downcase # => "ABC"
//}
@see Module#refine, Module#using... -
Module
# using(module) -> self (18113.0) -
引数で指定したモジュールで定義された拡張を現在のクラス、モジュールで有 効にします。
...ルで有
効にします。
有効にした拡張の有効範囲については以下を参照してください。
* https://docs.ruby-lang.org/en/master/syntax/refinements_rdoc.html#label-Scope
@param module 有効にするモジュールを指定します。
@see Module#refine, main.using... -
NEWS for Ruby 3
. 0 . 0 (36.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...timeError is now raised (previously,
it only issued a warning in verbose mode). Additionally, accessing a
class variable from the toplevel scope is now a RuntimeError.
14541
* Assigning to a numbered parameter is now a SyntaxError instead of
a warning.
== Command line options
==......* `Mutex` is now acquired per-`Fiber` instead of per-`Thread`. This change should be compatible for essentially all usages and avoids blocking when using a scheduler. 16792
* Proc
* Proc#== and Proc#eql? are now defined and will return true for separate Proc instances if the procs were created......m` class instead of being a `Random` instance, so it can work with `Ractor`. 17322
* `Random::DEFAULT` is deprecated since its value is now confusing and it is no longer global, use `Kernel.rand`/`Random.rand` directly, or create a `Random` instance with `Random.new` instead. 17351
* String... -
Ruby用語集 (24.0)
-
Ruby用語集 A B C D E F G I J M N O R S Y
...efinement
既存のクラスやモジュールを特定のスコープでのみ改変する仕組み。
参照:Module#refine、Module#using、main.using
: Ruby Central
Rubyのサポートと世界の Ruby コミュニティーの支援を専門とする非営利組織。
RubyConf(Inter......ァイル自体のエンコーディング。
→エンコーディング
: スクリプト探索パス
=ロードパス
: スコープ
: scope
変数・定数・メソッドなどが参照(・代入)可能な、コード上の範囲。
Ruby の定数やグローバル変数はプ......称。
: 例外
: exception
Exception クラス(やその子孫クラス)のインスタンス。
: レキシカルスコープ
: lexical scope
ソースコード上の見た目だけで決まるスコープ。静的スコープとも言う。
ローカル変数のスコープはレキ...