Tbpgr Blog

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

2014-11-01から1日間の記事一覧

Ruby | Proc | to_s

概要 Proc#to_s -> String 詳細 self の文字列表現を返却。 サンプルコード p Proc.new {}.to_s {}.to_s 出力 "#<Proc:0x2a8b770@/path/to/your/script.rb:1>" 参照 http://docs.ruby-lang.org/ja/2.1.0/method/Proc/i/to_s.html</proc:0x2a8b770@/path/to/your/script.rb:1>