Interviewer And Interviewee Guide

Ruby Developer Interview Question:

Tell me what is the difference between Active support's “HashWithIndifferent” and Ruby's “Hash” ?

Submitted by: Muhammad
The Hash class in Ruby's core library returns value by using a standard “= =” comparison on the keys. It means that the value stored for a symbol key cannot be retrieved using the equivalent string. While the HashWithIndifferentAccess treats Symbol keys and String keys as equivalent.
Submitted by: Muhammad

Read Online Ruby Developer Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.