From: Holden Glova Date: 2001-01-07T16:25:50+09:00 Subject: [ruby-talk:8775] Modules and mixins -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello all, I find myself having a really hard time understanding what is really going on when I look at code that mixes in a module. Specifically it is the all the sample.rb in the testgtk directory that come with the libgtk-ruby package. I have never had an exposure to anything like mixins throughout my degree and sadly am feeling quite lost, which I'm sure will pass with time and hopefully the patience of the list as I ask silly questions about this topic. What I really don't understand is when do I use a module? How do I know that I should have a class in this module that is to be "extended" from in it's useage. What heuristics do you folks use? What patterns do you follow that spark these design decisions? Thanks in advance for any contributions to this topic. P.S. Anyone give me a hint on what I should be looking for in order to create and use the underscore in a Menu with GTK? - -- Signed, Holden Glova -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6WBlozrxa+Gy/b/4RAoazAJwM7oxo+mvT1O8B9SajcRgp9BLzMQCaAwdF iiLjx9Dhn6RbKugI2a47MmM= =LSMZ -----END PGP SIGNATURE-----