Helpful methods on Ruby classes