From: Dave Thomas Date: 2001-08-01T23:32:03+09:00 Subject: [ruby-talk:18962] Re: Using "@" as a method name? Laurent Julliard writes: > myvar = @"A sample string" ... > PS: For those of you who know Objective C and the GNUstep environment > you probably see what I want to achieve. In this environment saying > @"string" has the same effect as saying NSString.new("string") in Ruby > and I'd like to replicate this behavior in Ruby On a related note: it would be nice to be able to have the ability to extend the repertoire of % commands. How about having %c{...} (where c is any character) invoke Kernel.build_, so %T{wombat} would call Kernel.build_T(), passing in "wombat". Is this a viable RCR? Dave