Hacker News new | ask | show | jobs
by stevedt 4217 days ago
prefer hash.fetch(:key) over hash[:key]. fetch raises NoKeyError if key not in hash.