Date: simplify code

Now that issue #162 has been fixed, we can use is_a?(Class) to refactor.