Frederick Cheung wrote: > On May 23, 7:10�am, Jian Lin <[email protected]> wrote: > >> >> So clearly, s.votes is an empty Array object. >> > > Actually it's not. It's an AssociationProxy object pretending to be an > instance of Array > > Fred
not like this? irb(main):010:0> class Foo irb(main):011:1> def class irb(main):012:2> return Fixnum irb(main):013:2> end irb(main):014:1> end => nil irb(main):015:0> f = Foo.new => #<Foo:0x4799ce8> irb(main):016:0> f.class => Fixnum irb(main):017:0> -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

