For some reason there’s a variable called d that is defined immediately after I enter irb. Any idea what it is?
For some reason there’s a variable called d that is defined immediately after I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you using
irbtoolsby any chance? If yes, there’s a predefined method calledd, that roughly looks like this:It can be used to debug message chains like this:
obj.some_method.d.other_method.Since it’s defined at the
Objectlevel, it should work if you just call it at the IRB top level where it would returnmain.