Dejan Dimic
7/21/2008 2:18:00 PM
On Jul 21, 3:12 pm, Glen Holcomb <damnbig...@gmail.com> wrote:
> [Note: parts of this message were removed to make it a legal post.]
>
> On Mon, Jul 21, 2008 at 4:04 AM, mosar <jean.mo...@neuf.fr> wrote:
> > The version I use is 0.9.5. I want to code @ name = name(for example)
> > but I cannot print the @. I I know that there is an option in the
> > command line but I do not find it.
> > Thanks for your help
>
> > Jean Moser
>
> I think your question has confused me however all you need to do to enter an
> @ sign in irb is hold shift and press '2'. You can't have a space between
> the @ and the rest of the token though.
>
> --
> "Hey brother Christian with your high and mighty errand, Your actions speak
> so loud, I can't hear a word you're saying."
>
> -Greg Graffin (Bad Religion)
C:\>irb --version
irb 0.9.5(05/04/13)
C:\>irb
irb(main):001:0> @name = "dejan"
=> "dejan"
irb(main):002:0> p @name
"dejan"
=> nil
irb(main):003:0> def name
irb(main):004:1> "dejan"
irb(main):005:1> end
=> nil
irb(main):006:0> @name = name
=> "dejan"
irb(main):007:0> p @name
"dejan"
=> nil
irb(main):008:0> exit
We obviously miss something in question?
Very puzzling!?