def gimme if block_given? yield yield else puts "I'm blockless!" endendgimme { print "Say hi again. " } # => Say hi again. Say hi again.