On Thu, Jul 7, 2011 at 6:03 AM, Brad Grzesiak <brad / bendyworks.com> wrote:
>
> When issuing the following command in irb, it believes it's in the middleof a regexp, rather than returning a string with two slashes:
>
>  "#{"//"}"
>
> While this doesn't seem all that common, it has the same problem with thefollowing string:
>
>  "#{Time.now.strftime("%m/%d/%Y")}"
>
> irb version is: irb 0.9.5(05/04/13)
>

Works fine for me on a later version of IRB.

ruby-1.9.2-p180 :001 > IRB.version
 => "irb 0.9.6(09/06/30)"
ruby-1.9.2-p180 :002 > "#{"//"}"
 => "//"
ruby-1.9.2-p180 :003 > "#{Time.now.strftime("%m/%d/%Y")}"
 => "07/07/2011"