How to denote generator methods?

# Herby Vojčík (14 years ago)

for a function, you can instead of

method: function (args) { body },

use the convenient (and non-enumerating)

method (args) { body }

in literal / class.

But for a generator

gen: function* (args) { body }

what can you use to create a generator method? Would

*gen (args) { body }

be possible?