On 10 May 2010 14:04, rusty <[email protected]> wrote:
> Ok, one last question and I think I've got this.
>
> How is Ruby interpreting this string?
>
> "--#{salt}--#{password}--"
>
> For example let's say....
> salt = 1234
> password = 5678
>
> Is Ruby seeing
>
> "--#{1234}--#{5678}--"
>
> or
>
> "--#1234--#5678--"
>
> or
>
> "--1234--5678--"
>
> This is really just my ignorance of how Ruby interprets variables in
> strings. Sorry in advance for the dumb question.

Try it in the console and see. (ruby script/console)

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to