以下の内容はhttps://tbpgr.hatenablog.com/entry/20140822/1408710443より取得しました。


Ruby | Module | remove_method

概要

Module#remove_method(*name) -> self

詳細

インスタンスメソッド name をモジュールから削除する。
配列指定での一括削除も可能。

サンプルコード
class Hoge
  def hoge
    'hoge'
  end
  print instance_methods(false), "\n"
  remove_method :hoge
  print instance_methods(false), "\n"
end

出力

$ ruby remove_method.rb
[:hoge]
[]



以上の内容はhttps://tbpgr.hatenablog.com/entry/20140822/1408710443より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14