Hi.

Iam not very deep in ruby. Please answer:

1) is the attr (method) slower than instance_variable_get/set ?
2) How can I define [] for instance_var_get/set (like in struct) ?
3) Is there a way to undefine @variable. I assign nil to them, but in
to_yaml output they are still there (even if empty). Is there way to
undefine them?

Thanks. FP.
-- 
Posted via http://www.ruby-forum.com/.