Interview Question

Software Engineer In Test Interview San Francisco, CA

What is the difference between :this, @this, and @@this?

Tags:
ruby
Answer

Interview Answer

1 Answer

0

in ruby

:this ---- symbol
@this --- instance variable
@@this --class variable

ebrima on Feb 11, 2015

Add Answers or Comments

To comment on this, Sign In or Sign Up.