2014-07-24から1日間の記事一覧
概要 Module#method_defined?(name) -> bool 詳細 モジュールにインスタンスメソッド name が定義されているとき true を返却。 引数は Symbol か String を指定可能 サンプルコード require 'tbpgr_utils' module Hogeable def hogeable end end class Hoge…
概要 Module#method_defined?(name) -> bool 詳細 モジュールにインスタンスメソッド name が定義されているとき true を返却。 引数は Symbol か String を指定可能 サンプルコード require 'tbpgr_utils' module Hogeable def hogeable end end class Hoge…