class Moo
@property "rawr"
format: -> @get("rawr")
The above example will raise an error about window.get being undefined in Serenade. You can’t use a double-arrow for coffee-script either since it’ll place you in the context of Moo instead of the Moo instance.
Luckily the format function still receive the value to be formatted as a parameter, but you still cannot access other properties from the same instance.
The above example will raise an error about window.get being undefined in Serenade. You can’t use a double-arrow for coffee-script either since it’ll place you in the context of Moo instead of the Moo instance.
Luckily the format function still receive the value to be formatted as a parameter, but you still cannot access other properties from the same instance.