Tbpgr Blog

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

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

Ruby | Hash | has_value?

概要 Hash.has_value? 詳細 Hashのvalueが存在するか確認する。 aliasとして「value?」がある サンプル コード # encoding: utf-8 require 'tbpgr_utils' h = { hoge: "hoge", hige: "hige", hage: "hage", } bulk_puts_eval binding, <<-EOS h.has_value? '…

TbpgrUtils | 追加要件 Numeric.to_hex_table 追加

概要 追加要件 Numeric.to_hex_table 追加 詳細 追加要件 Numeric.to_hex_tableを追加する 仕様 ・10進数と16進数を表形式の文字列で取得します ※より詳細についてはGitHubのREADMEおよびテストケース参照 GitHub https://github.com/tbpgr/tbpgr_utils Ruby…