Easy hook methods for Ruby