るりまサーチ

最速Rubyリファレンスマニュアル検索!
29件ヒット [1-29件を表示] (0.009秒)
トップページ > クエリ:scope[x] > 種類:文書[x]

別のキーワード

  1. rake scope_name
  2. uri scope
  3. uri scope=
  4. ldap scope
  5. task scope

キーワード

検索結果

変数と定数 (23.0)

変数と定数 * local * instance * class * class_var_scope * global * pseudo * const * prio

...変数と定数
* local
* instance
* class
* class_var_scope
* global
* pseudo
* const
* prio

Ruby の変数と定数の種別は変数名の最初の一文字によって、
ローカル変数、
インスタンス変数、
クラス変数、
グローバル変数、
定数
のい...
...[][ruby]{
class Foo
end

class Bar < Foo
@@v = :bar
end

class Foo
@@v = :foo
end

class Bar
p @@v #=> :foo
end
//}



====[a:class_var_scope] クラス変数のスコープ

クラス変数は、その場所を囲むもっとも内側の(特異クラスでない) class 式
または mod...
...nd

class Foo
@@v = :foo
end

class Bar
p @@v #=> RuntimeError (class variable @@v of Bar is overtaken by Foo)
end
//}


====[a:class_var_scope] クラス変数のスコープ

クラス変数は、その場所を囲むもっとも内側の(特異クラスでない) class 式
または mod...

Ruby用語集 (13.0)

Ruby用語集 A B C D E F G I J M N O R S Y

...し、切り替えて使うための
ツールの一つ。Linux、macOS などで動作する。

https://github.com/rbenv/rbenv

: RD(Ruby Document format)
Ruby スクリプト中に記述することを念頭に作られたドキュメントフォーマット。

: RDoc
Ruby スクリ...
...ルが利用する、二つのオブジェクトの順序関係を表す
演算子 <=> の俗称。

: 埋め込みドキュメント
: embedded document
ソースコード中の =begin 行から =end 行まで。コメントとみなされ実行されない。

その名の通り、この部...
...ァイル自体のエンコーディング。

→エンコーディング

: スクリプト探索パス
=ロードパス

: スコープ
: scope
変数・定数・メソッドなどが参照(・代入)可能な、コード上の範囲。

Ruby の定数やグローバル変数はプ...

NEWS for Ruby 3.0.0 (7.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

==...