Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Here-document/Ruby/here-document-1.rb
Normal file
6
Task/Here-document/Ruby/here-document-1.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
address = <<END
|
||||
1, High Street,
|
||||
#{town_name},
|
||||
West Midlands.
|
||||
WM4 5HD.
|
||||
END
|
||||
5
Task/Here-document/Ruby/here-document-2.rb
Normal file
5
Task/Here-document/Ruby/here-document-2.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
pancake = <<"NO MORE INGREDIENTS"
|
||||
egg
|
||||
milk
|
||||
flour
|
||||
NO MORE INGREDIENTS
|
||||
5
Task/Here-document/Ruby/here-document-3.rb
Normal file
5
Task/Here-document/Ruby/here-document-3.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
x = <<'FOO'
|
||||
No
|
||||
#{interpolation}
|
||||
here
|
||||
FOO
|
||||
3
Task/Here-document/Ruby/here-document-4.rb
Normal file
3
Task/Here-document/Ruby/here-document-4.rb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
output = <<`BAR`
|
||||
ls /home
|
||||
BAR
|
||||
4
Task/Here-document/Ruby/here-document-5.rb
Normal file
4
Task/Here-document/Ruby/here-document-5.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
puts <<EOF + "lamb"
|
||||
Mary had
|
||||
a little
|
||||
EOF
|
||||
Loading…
Add table
Add a link
Reference in a new issue