Module: HotCell::Fields

Included in:
Request, Response
Defined in:
lib/hot_cell/fields.rb

Overview

How a wire message reads its own fields, shared by Request and Response.

The two had a copy each of the same parse preamble and the same typed-field check, differing only in whether the error said "request" or "response" — so a fix to the wording landed in one and not the other.

The includer states its own noun. Deriving it from the class name looks tidier and does not work: Request's singleton defines name(parsed, key) for its own String field, which shadows Module#name.