File indexing completed on 2024-05-19 04:38:18

0001 a = 'Hello'
0002 b = 'I\'m a string'
0003 c = 'Let\'s' + ' concatenate!'
0004 d = "I'm a double-quoted string"
0005 e = 0
0006 f = "The value of e variable: #{e}"
0007 g = 'Don\'t forget' ' this way to' ' concatenate strings'
0008 
0009 this_is = %q( This is )
0010 persian = %Q( #{this_is} blasphemy! #{this_is} madness! )
0011 leonidas = %{ Madness? #{this_is} Sparta! }
0012 
0013 k = `ls \`asdas`
0014 l = `ls`
0015 dir = "."
0016 m = `ls #{dir}`
0017 
0018 # test cases for general delimited input
0019 # quoted strings
0020 %Q|this is a string|
0021 %Q{this is a string}
0022 %Q(this is a string)
0023 %Q<this is a string>
0024 %Q[this is a string]
0025 
0026 %|also a string|
0027 %{also a string}
0028 %(also a string)
0029 %<also a string>
0030 %[also a string]
0031 
0032 # apostrophed strings
0033 %q|apostrophed|
0034 %q{apostrophed}
0035 %q(apostrophed)
0036 %q<apostrophed>
0037 %q[apostrophed]
0038 
0039 %x[ ls ]
0040 
0041 # Weird way to declare a char :D
0042 c = ?a
0043 c = ?\n
0044 c = ?-
0045 a = b ?1 : c
0046 a = (b) ?1 : c
0047 
0048 a = 'asdas
0049 asd'
0050 
0051 a = 'asd
0052 asdasd
0053 asdasdasdasd'
0054 
0055 b = "asd #{c.foo}" "aaa #{a} "
0056 
0057 "asd #$a sdàs #@a"
0058 
0059 %{ {} }
0060 %[ [ asdsad ] ]