rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/moonscript

17 lines
259 B
Plaintext
Raw Normal View History

2019-10-21 08:18:17 +00:00
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