531件ヒット
[501-531件を表示]
(0.026秒)
ライブラリ
- ビルトイン (504)
- json (12)
-
minitest
/ spec (1) -
minitest
/ unit (2) - pp (12)
クラス
- BasicObject (48)
-
JSON
:: Parser (12) - Method (12)
- Module (180)
- Object (241)
- UnboundMethod (12)
モジュール
- Enumerable (24)
-
MiniTest
:: Assertions (2)
キーワード
- === (24)
-
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
bind
_ call (12) - class (12)
-
class
_ eval (24) -
class
_ variables (12) - constants (12)
- grep (24)
-
initialize
_ copy (12) -
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variable _ set (12) -
instance
_ variables (12) -
is
_ a? (12) -
kind
_ of? (12) - method (12)
- methods (12)
-
module
_ eval (24) -
must
_ be _ instance _ of (1) - parameters (12)
- parse (12)
-
pretty
_ print _ instance _ variables (12) -
private
_ instance _ methods (12) -
private
_ methods (12) -
protected
_ instance _ methods (12) -
protected
_ methods (12) -
public
_ instance _ method (12) -
public
_ instance _ methods (12) -
public
_ method (12) -
public
_ methods (12) -
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) -
respond
_ to? (12) -
singleton
_ method (12) -
singleton
_ method _ undefined (12)
検索結果
先頭3件
-
Module
# constants(inherit = true) -> [Symbol] (37.0) -
そのモジュール(またはクラス)で定義されている定数名の配列を返します。
...クルードしているモジュールの定数も含みます。
Object のサブクラスの場合、Objectやそのスーパークラスで定義されている
定数は含まれません。 Object.constants とすると Object クラスで定義された
定数の配列が得られます。......ます。false を指定した場合 対象にはなりません。
@see Module.constants, Kernel.#local_variables, Kernel.#global_variables, Object#instance_variables, Module#class_variables
//emlist[Module.constants と Module#constants の違い][ruby]{
# 出力の簡略化のため起動時の... -
Module
# ===(obj) -> bool (19.0) -
指定された obj が self かそのサブクラスのインスタンスであるとき真を返します。 また、obj が self をインクルードしたクラスかそのサブクラスのインスタンスである場合にも 真を返します。上記のいずれでもない場合に false を返します。
...ルの所属関係をチェックすることになります。
//emlist[例][ruby]{
str = String.new
case str
when String # String === str を評価する
p true # => true
end
//}
@param obj 任意のオブジェクト
@see Object#kind_of?, Object#instance_of?, d:spec/control#case... -
Module
# class _ variables(inherit = true) -> [Symbol] (13.0) -
クラス/モジュールに定義されているクラス変数の名前の配列を返します。
...d
class Two < One
@@var2 = 2
end
One.class_variables # => [:@@var1]
Two.class_variables # => [:@@var2, :@@var1]
Two.class_variables(false) # => [:@@var2]
//}
@see Module.constants, Kernel.#local_variables, Kernel.#global_variables, Object#instance_variables, Module#constants...