Hassan Schroeder wrote in post #1135882:
> On Thu, Feb 6, 2014 at 3:13 PM, Mish Ahmed <lists / ruby-forum.com> wrote:
>> 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)
>
> Actually, no - you have an imperative statement and an ostensibly
> factual statement. Would you like to ask questions about those? If
> so, what are they exactly?

for the first q

class foo
 attr_accessor_with_history :bar
end

I need when I compile it its gives me

f=Foo.new    #=> #<Foo:0x127e678>
f.bar =3     #=> 3
f.bar = :wowzo    #=> :wowzo
f.bar = 'boo!'    #=> 'boo!'
f.history(:bar)   #=> [3, :wowzo, 'boo!']

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