box-o-sand/lrthw-remnants/ex8.rb

13 lines
349 B
Ruby
Raw Normal View History

2012-02-19 18:36:30 +00:00
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."
]