4 simple memoization patterns in Ruby (and one gem) | Hacker News Reader