るりまサーチ (Ruby 2.2.0)

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

別のキーワード

  1. fileutils remove
  2. fileutils remove_dir
  3. fileutils remove_file
  4. rexml/document remove
  5. fileutils remove_entry

ライブラリ

検索結果

BasicObject#singleton_method_removed(name) -> object (18373.0)

特異メソッドが Module#remove_method に より削除された時にインタプリタから呼び出されます。

...method_removed(name)
puts "singleton method \"#{name}\" was removed"
end
end

obj = Foo.new
def obj.foo
end

class << obj
remove_method :foo
end

#=> singleton method "foo" was removed
//}

@see Module#method_removed,BasicObject#singleton_method_added,BasicObject#singleton_method_undefined...