I put your code in a small script and executed it without problem. I think your Mason code is picking up a same module somewhere in your path and gets the error.
You can try one of the followings:
In reply to Re: My module's methods aren't working under Mason pages?
by duyet
in thread My module's methods aren't working under Mason pages?
by domje
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |