Implement ERB parser as class instead of module