summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/rouge-4.5.2/lib/rouge/demos/livescript
blob: 9daf4db300f9b4504f79734153d1c1c58d84c04b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mitch =
    age:    21
    height: 180cm
    pets:   [\dog, \goldfish]

phile = {}
phile{height, pets} = mitch
phile.height #=> 180
phile.pets   #=> ['dog', 'goldfish']

a = [2 7 1 8]
    ..push 3
    ..shift!
    ..sort!
a #=> [1,3,7,8]