Module: HotCell::Declarations
- Defined in:
- lib/hot_cell/declarations.rb
Overview
How a class-level declaration is read back on both sides of the socket.
HotCell::Client and HotCell::Operation are the same shape of thing — a class whose body declares what
it is, with a subclass free to override one declaration and inherit the rest. Both needed the same lookup
and both had their own copy of it, in gems that are never loaded together and so could never diverge
loudly. This is the shared home they already have.
A class-level instance variable is not visible to a subclass, which is what makes @limits on a base class
invisible to the operation that inherits from it. Walking ancestors is what turns that into inheritance.
Class only, because a module cannot carry one of these declarations.