324件ヒット
[301-324件を表示]
(0.040秒)
別のキーワード
ライブラリ
- ビルトイン (324)
キーワード
- < (12)
- <= (12)
- > (12)
- >= (12)
-
class
_ variable _ get (12) -
const
_ get (12) -
const
_ missing (12) -
define
_ method (24) -
deprecate
_ constant (12) - include (12)
-
instance
_ method (12) - private (48)
-
private
_ constant (12) - public (48)
-
public
_ constant (12) -
public
_ instance _ method (12) -
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ method (12) -
undef
_ method (12)
検索結果
-
Module
# remove _ class _ variable(name) -> object (14.0) -
引数で指定したクラス変数を取り除き、そのクラス変数に設定さ れていた値を返します。
...たクラス変数に設定されていた値を返します。
@raise NameError 引数で指定されたクラス変数がそのモジュールやクラスに定義されていない場合に発生します。
//emlist[例][ruby]{
class Foo
@@foo = 1
remove_class_variable(:@@foo) # => 1
p......@@foo # => uninitialized class variable @@foo in Foo (NameError)
end
//}
@see Module#remove_const, Object#remove_instance_variable... -
Module
# remove _ const(name) -> object (14.0) -
name で指定した定数を取り除き、その定数に設定されていた値を 返します。
...で指定された定数に設定されていた値を返します。
@raise NameError 引数で指定された定数がそのモジュールやクラスに定義されていない場合に発生します。
//emlist[例][ruby]{
class Foo
FOO = 1
p remove_const(:FOO) # => 1
p FOO # =>......指定した(まだロードしてない)定数を含めて削除する事ができます。
取り除かれた定数は参照できなくなりますが、消える訳ではないので注意して
使用してください。
@see Module#remove_class_variable, Object#remove_instance_variable...