Map
Index
Random
Help
th

Quote: Ruby instance variables are always protected; accessible to subclasses only

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



Topic:
object-oriented fields
Topic:
opaque and partially-opaque data types

Quotation Skeleton

[In Ruby,] you may not export an object's instance … "protected" concept.) Instead, Ruby has attributes: methods that … … or use the Ruby shortcuts [e.g., attr_accessor :title]   Google-1   Google-2

Copyright clearance needed for quotation.

Additional Titles

Quote: use Ruby attributes to get and set instance variables; define explicitly or via 'attr_accessor', etc.

Related Topics up

Topic: object-oriented fields (28 items)
Topic: opaque and partially-opaque data types (14 items)

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