rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/moonscript
2019-10-21 10:18:17 +02:00

17 lines
259 B
Plaintext

util = require "my.module"
a_table = {
foo: 'bar'
interpolated: "foo-#{other.stuff 2 + 3}"
"string": 2
do: 'keyword'
}
class MyClass extends SomeClass
new: (@init, arg2 = 'default') =>
@derived = @init + 2
super!
other: =>
@foo + 2