From: mrp@... Date: 2002-03-01T23:13:04+09:00 Subject: here documents as method parameter problem in the following code, the first 2 "puts" work, but the last produces: $ ./tmp.rb ../tmp.rb:26: parse error , 'baz' ^ ../tmp.rb:26: warning: useless use of a literal in void context what's going on? i know stylistically it's not very nice, but should this work? all done with ruby 1.6.6 ta, martin. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> #!/usr/local/bin/ruby -w class Tmp attr_reader :a, :b, :c def initialize( a, b, c) @a = a @b = b @c = c end def to_s "#{@a} #{@b} #{@c}" end end puts Tmp.new( 'foo', 'bar', 'baz') puts Tmp.new( 'foo', 'bar', <