andymeneely / squib

A Ruby DSL for prototyping card games.
http://squib.rocks
MIT License
918 stars 67 forks source link

TypeError when using += without an extends should be more informative #182

Open andymeneely opened 8 years ago

andymeneely commented 8 years ago

If you accidentally have this:

Resource2Img:
  y: += 125

...when you really mean this...

Resource2Img:
  extends: Resource1
  y: += 125

You get a type error - it would be nice if we had a better error message than this