A Admin • 802.91K Points Coach Report Q. What is the main difference between instance_eval and class_eval in Ruby? (A) instance_eval evaluates code within the context of a method, while class_eval evaluates code within the context of a block (B) instance_eval evaluates code within the context of a block, while class_eval evaluates code within the context of a method (C) instance_eval evaluates code within the context of an object, while class_eval evaluates code within the context of a class (D) instance_eval evaluates code within the context of a class, while class_eval evaluates code within the context of an object Correct Answer - Option(C) Views: 4 Filed under category Ruby Hashtags: Share Manage Tags
Discusssion
Login to discuss.