324件ヒット
[301-324件を表示]
(0.069秒)
別のキーワード
ライブラリ
- ビルトイン (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
# <(other) -> bool | nil (32.0) -
比較演算子。self が other の子孫である場合、 true を返します。 self が other の先祖か同一のクラス/モジュールである場合、false を返します。
...ないクラス同士の比較では
nil を返します。
@param other 比較対象のモジュールやクラス
@raise TypeError other がクラスやモジュールではない場合に発生します。
//emlist[例][ruby]{
module Foo
end
class Bar
include Foo
end
class Baz < Bar
end
clas......s Qux
end
p Bar < Foo # => true
p Baz < Bar # => true
p Baz < Foo # => true
p Baz < Qux # => nil
p Baz > Qux # => nil
p Foo < Object.new # => in `<': compared with non class/module (TypeError)
//}... -
Module
# class _ variable _ get(name) -> object (32.0) -
クラス/モジュールに定義されているクラス変数 name の値を返します。
...name の値を返します。
@param name String または Symbol を指定します。
@raise NameError クラス変数 name が定義されていない場合、発生します。
//emlist[例][ruby]{
class Fred
@@foo = 99
end
def Fred.foo
class_variable_get(:@@foo)
end
p Fred.foo #=> 99
/...