Tbpgr Blog

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

2014-06-26から1日間の記事一覧

Ruby | Method | source_location

概要 Method#source_location -> [String, Fixnum] | nil 詳細 ソースコードのファイル名と行番号を配列で返却。 対象オブジェクトがnativeの場合はnilを返却。 サンプルコード 1.rb require 'tbpgr_utils' require './2' class Hoge1 def hoge; end end h1 …