Fix #11: type method refactoring
Try instead of rescue
Merge pull request #15 from hyperoslo/type-refactoring

Fix #11: type method refactoring