るりまサーチ (Ruby 3.4)

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

別のキーワード

  1. argf.class each_line
  2. argf.class each
  3. argf.class lines
  4. argf.class readline
  5. argf.class readlines

ライブラリ

検索結果

BasicObject#singleton_method_removed(name) -> object (193.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...