mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-16 10:34:55 -05:00
allowing @properties to be referenced in naked interpolations
This commit is contained in:
@@ -40,3 +40,9 @@ ok "${hello + ' ' + world + '!'}" is 'Hello World!'
|
||||
list: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||
ok "values: ${list.join(', ')}, length: ${list.length}." is 'values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, length: 10.'
|
||||
ok "values: ${list.join ' '}" is 'values: 0 1 2 3 4 5 6 7 8 9'
|
||||
|
||||
obj: {
|
||||
name: 'Joe'
|
||||
hi: -> "Hello $@name."
|
||||
}
|
||||
ok obj.hi() is "Hello Joe."
|
||||
|
||||
Reference in New Issue
Block a user