Crystal Expert · Lesson 10
API design: delegate, forward_missing_to, getter!, property? and visibility
Shape a clean public API: forward calls to a wrapped object, mark late-set fields, name boolean properties, and hide internals with protected and private.
Lessons · Crystal Expert · Lesson 10 of 10
API design: delegate, forward_missing_to, getter!, property? and visibility
Shape a clean public API: forward calls to a wrapped object, mark late-set fields, name boolean properties, and hide internals with protected and private.
