-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathe8.rb
More file actions
20 lines (17 loc) · 694 Bytes
/
e8.rb
File metadata and controls
20 lines (17 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
formatter = "%{first} %{second} %{third} %{fourth}"
puts formatter % {first: 1, second: 2, third: 3, fourth: 4}
puts formatter % {first: "one", second: "two", third: "three", fourth: "four"}
puts formatter % {first: true, second: false, third: true, fourth: false}
puts formatter % {first: formatter, second: formatter, third: formatter, fourth: formatter}
puts formatter % {
first: "I had this thing.",
second: "That you could type up right.",
third: "But it didn't sing.",
fourth: "So I said goodnight.",
}
puts formatter % {
first: formatter,
second: formatter,
third: formatter,
fourth: formatter,
} % {first: "one", second: "two", third: "three", fourth: "four"}