Subject: Re: String interpolation
From: Thomas Worm <usenet s4r.de>
Date: Sun, 26 Aug 2007 18:45:15 +0900
References: 266262266265
On Sun, 26 Aug 2007 18:38:46 +0900, Stefan Rusterholz wrote:
> a = 5
> b = proc { "a is now: #{a}" }
> def b.to_s; call; end
> puts b # !> a is now: 5
> a = 6
> puts b # !> a is now: 6
Many thanks for the quick help !!!
Thomas