File: array.toml

package info (click to toggle)
ruby-toml-rb 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,840 kB
  • sloc: ruby: 1,350; makefile: 6
file content (26 lines) | stat: -rw-r--r-- 513 bytes parent folder | download | duplicates (2)
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
ints = [1, 2, 3]
floats = [1.1, 2.1, 3.1, 4.1E+5]
strings = [ "all", 'strings', """are the same""", '''type''' ]
multiline_strings = ["""\
This \

               is \
               a \
               test \
               string""",
               "Other test string"]
multiline_literal = ['''\
This \

               is \
               a \
               test \
               string''',
               "Other test string"]
ignore_whitespace = [ 1
,2       ,3
	,4	]
trailing_comma = [
  1,
  2, # this is ok
]