I have two question regarding ruby programming if someone can help me
with that,I am looking for the syntax as i am confused with these
questions.

1. Define a method attr_accessor_with_history that provides the same
functionality as attr_accessor but also tracks every value the attribute
has ever had.


2. the Enumerable module includes an iterator each_with_index that
yields each enumerable element along with an index starting from
zero(recall that Enumerable is mixed into Ruby's built in collection
classes by default)

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