Ruby on Rails Developer Question:
Download Job Interview Questions and Answers PDF
Tell me the difference between ActiveSupport’s “HashWithIndifferentAccess” and Ruby’s “Hash”?
Answer:
The “HashWithIndifferentAccess” class will treat symbol keys and string keys as equivalent while the “Hash” class in Ruby will use the stricter = = comparison on keys—an equivalent string key will not retrieve the value for a given symbol key.
Download Ruby on Rails Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me how does Ruby on Rails use the Model View Controller (MVC) framework? | Tell me what is CoC in Rails? |