You may be right.
I really don't know why some examples use @new_resource and sometimes new_resource. :/

If you are more familiar with this, I can follow your advice and revert this commit or you can do it yourself after merging it if you want to.