13 lines
349 B
Ruby
13 lines
349 B
Ruby
|
formatter = "%s %s %s %s"
|
||
|
|
||
|
puts formatter % [1, 2, 3, 4]
|
||
|
puts formatter % ["one", "two", "three", "four"]
|
||
|
puts formatter % [true, false, false, true]
|
||
|
puts formatter % [formatter, formatter, formatter, formatter]
|
||
|
puts formatter % [
|
||
|
"I had this thing.",
|
||
|
"That you could type up right.",
|
||
|
"But it didn't sing.",
|
||
|
"So I said goodnight."
|
||
|
]
|