arjan / decorator

Function decorators for Elixir
MIT License
385 stars 20 forks source link

Fix attribute value usage #26

Closed arjan closed 6 years ago

arjan commented 6 years ago

When using attributes inside decorated functions, and the attribute is redefined later on, the last known value is used when the decorated function is redefined, instead of the value that the attribute had on the position of the original definition of the function.