jameskilton (owner)

Revisions

gist: 163473 Download_button fork
public
Public Clone URL: git://gist.github.com/163473.git
Embed All Files: show embed
Ruby #
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
str1 = "this is a pretty \
cool way of going about \
makeing really long
\
and neat strings \
yo"
 
str2 =<<-END
And this way you
dont' need a slash
at the end of
the line
END
 
str3 = "but if you use " +
  " plus instead, you need to make sure" +
  "you put the whitespace in\n"
 
str4 = "this is a pretty
cool way of going about
makeing really long
 
and neat strings
yo"
 
 
str5 = "but if you use " \
  " plus instead, you need to make sure" \
  "you put the whitespace in\n"
 
puts str1, ""
puts str2, ""
puts str3, ""
puts str4, ""
puts str5, ""
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
this is a pretty cool way of going about makeing really long
     and neat strings
yo
 
 And this way you
    dont' need a slash
  at the end of
         the line
 
but if you use plus instead, you need to make sureyou put the whitespace in
 
this is a pretty
   cool way of going about
 makeing really long
 
     and neat strings
yo
 
but if you use plus instead, you need to make sureyou put the whitespace in