Map
Index
Random
Help
th

Quote: a Ruby module is a namespace

topics > all references > references t-z > QuoteRef: thomD1_2001 , p. 49



Topic:
namespace
Topic:
interface type
Topic:
monitored statements and events

Quotation Skeleton

[In Ruby,] Modules are classes that you can't instantiate. … @ Modules provide namespaces. Constants and class methods … in other modules. … @ [Modules implement mix-ins] [p. 50] Perhaps the easiest way to … class that implemented such an interface [would also have access to this code (e.g., Enumerable implements the method find for finding] the first member of a collection that meets some criteria). …   Google-1   Google-2

Copyright clearance needed for quotation.

Additional Titles

Quote: a Ruby mix-in is an interface that includes code; e.g., 'find' for 'Enumerable'; implemented as a module

Related Topics up

Topic: namespace (19 items)
Topic: interface type (50 items)
Topic: monitored statements and events (16 items)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.