Use #method instead of #public_method for 1.8.7 compatibility