1. Computing & Technology

Discuss in my forum

Michael Morin

Mixin Modules

By , About.com GuideOctober 27, 2009

Follow me on:

Mixins are one of Ruby's defining features, but often one of the most difficult to understand for those new to Ruby. They're not difficult to understand, but they're not something most programmers have encountered before as most languages don't have mixins. A mixin is a way for code to be shared across multiple classes and is closely related to duck typing.

Read the complete article
Comments
No comments yet.  Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2012 About.com. All rights reserved.

A part of The New York Times Company.