11件ヒット
[1-11件を表示]
(0.022秒)
別のキーワード
ライブラリ
- ビルトイン (11)
検索結果
-
Module
# const _ missing(name) (18108.0) -
定義されていない定数を参照したときに Ruby インタプリタが このメソッドを呼びます。
...mbol
@raise NameError このメソッドを呼び出した場合、デフォルトで発生する例外
//emlist[例][ruby]{
class Foo
def Foo.const_missing(id)
warn "undefined constant #{id.inspect}"
end
Bar
end
Foo::Bar
# => undefined constant :Bar
# undefined constant :Bar
//}...