File: pattern.rb

package info (click to toggle)
ruby-unparser 0.6.13-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 936 kB
  • sloc: ruby: 7,691; sh: 6; makefile: 4
file content (41 lines) | stat: -rw-r--r-- 414 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
case foo
in A[1, 2, *a, 3] then
  true
in [1, 2, ] then
  y
in A(x:) then
  true
in {**a} then
  true
in {} if true then
  true
in [x, y, *] then
  true
in {a: 1, aa: 2} then
  true
in {} then
  true
in {**nil} then
  true
in {"#{"a"}": 1} then
  true
in 1 | 2 then
  true
in 1 => a then
  true
in ^x then
  true
in 1
in 2 then
  true
else
  true
end
case foo
in A[1, 2, *a, 3]
end
case foo
in A
else
end
1 in [a]