box-o-sand/oldstuff/lrthw-remnants/ex8.rb
2015-06-22 13:15:42 -05:00

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."
]