Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

2014-07-24から1日間の記事一覧

Ruby | Module | method_defined?

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