class_eval « Reflection « Ruby






1.class_eval is ideal for adding methods to a class dynamically:
2.Creating Your Own Version of attr_accessor