Tbpgr Blog

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

2013-12-15から1日間の記事一覧

Tudu | 追加要件 tasks実行時に-cオプションでカテゴリ(todos, doings, done)が分かるように表示する

概要 追加要件 tasks実行時に-cオプションでカテゴリ(todos, doings, done)が分かるように表示する 詳細 tasks実行時に-cオプションでカテゴリ(todos, doings, done)が分かるように表示する機能を追加します。 サンプル $ tudu add one two three $ tudu…

Ruby | Enumerable | min_by

概要 Enumerable#min_by 詳細 Enumerable#min_by ブロックの評価結果で判定を行い最小値を返します サンプル コード # encoding: utf-8 class Person include Enumerable attr_accessor :name, :age def initialize(name, age) @name, @age = name, age end …

Ruby | Enumerable | min

概要 Enumerable#min 詳細 Enumerable#min メソッドを利用して最小値を返します。 ブロックを指定した場合は、ブロックの評価結果で判定を行います。 サンプル コード # encoding: utf-8 class Person include Enumerable attr_accessor :name, :age def ini…