M

Mr. Dubey • 52.26K Points
Coach

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

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.