るりまサーチ

最速Rubyリファレンスマニュアル検索!
708件ヒット [701-708件を表示] (0.071秒)

別のキーワード

  1. argf.class each
  2. argf.class each_line
  3. argf.class lines
  4. class new
  5. argf.class gets

検索結果

<< < ... 6 7 8 >>

Module#remove_method(*name) -> self (8.0)

インスタンスメソッド name をモジュールから削除します。

...ring か Symbol を指定します。

@raise NameError 指定したメソッドが定義されていない場合に発生します。

//emlist[例][ruby]{
class
C
def foo
end

remove_method :foo
remove_method :no_such_method # 例外 NameError が発生
end
//}

@see Module#undef_method...
<< < ... 6 7 8 >>