Hard work by INTERNET

ベンチャーで働くひとりぼっちWEB開発者が頑張るブログ

DateTime#blank? のメソッドをempty?を使うように修正する

github.com

issue本文

I think DateTime#blank? should be use Object#blank? method.

DateTime#blank? は Object#blank? を使うべきだと思う。

WDYT?(Why do you thihk?)

どう思う?

返事

Inheritance is only left to non-whitelisted classes. The method is overridden in a bunch of them for performance reasons.

継承はノンホワイトリストクラスだけに任せている。(よくわからない....。?)

そのメソッドはパフォーマンス上のため上書きされている。

感想

Object#blank? は遅いって聞きますよね。