Why Object.new.methods == Object.methods is false in Ruby -


आईआरबी में, Object.new.methods == Object.methods या हैश नए और बिना किसी नए आउटपुट के विभिन्न तरीकों के साथ क्यों?

वस्तु एक कक्षा है Object.new एक नया ऑब्जेक्ट बनाता है, जो क्लास नहीं है चूंकि कक्षा के ऑब्जेक्ट से अलग-अलग उदाहरण तरीकों हैं, इसलिए उन अभिव्यक्ति के परिणाम समान नहीं हैं।

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -

ios - Does Core Data autoupdate a many to many relationship on saving -