Tbpgr Blog

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

2014-09-29から1日間の記事一覧

Ruby | Object | method

概要 Object#method(name) -> Method 詳細 オブジェクトのメソッド name をオブジェクト化した Method オブジェクトを返却。 サンプルコード require 'tbpgr_utils' class Hoge def hoge(repeat) 'hoge'*repeat end end hoge_method = Hoge.new.method(:hoge…