you can omit the Q altogether : String Quotation String Ruby
puts %/No/
you cannot mix double-quoted text inside a double-quoted string, or single-quoted text inside a single-quoted string : String Literal String Ruby
puts "I said, "Hello.""
you can multiply strings : multiply strings String Ruby
puts "abc" * 5
you can convert an array on the fly using the collect method : collect Array Ruby
[1, 2, 3, 4].collect { |element| element * 2 }
yield with proc parameter : yield Method Ruby
#!/usr/local/bin/ruby def return_block yield end def return_proc( &proc ) yield end return_block { puts "Got block!" } return_proc { puts "Got block, convert to proc!" }