Hooks Hooks Special macros exist that are invoked in some situations as hooks, at compile time: inherited is invoked when a subclass is defined. @type is the inheriting type...
Cache Control Expires Conditional GET ETag Last Modified We refer to HTTP caching as the set of techniques for HTTP/1.1 and implemented by browser vendors in order to make f...
intervalLengthSum intervalLengthSum Calculates the total length of union of all ranges (segments on numeric axis). Syntax intervalLengthSum ( start , end ) Arguments ...
Type inference With type restrictions Without type restrictions 1. Assigning a literal value 2. Assigning the result of invoking the class method new 3. Assigning a variable th...
Type inference With type restrictions Without type restrictions 1. Assigning a literal value 2. Assigning the result of invoking the class method new 3. Assigning a variable th...
Newlines style guide Newlines style guide Rule: separate code with newlines only to group together related logic Rule: separate code and block with newlines Newline before block ...
Enable Cookies Settings Usage Example Enable Cookies Hanami applies “batteries included, but not installed” philosophy. Cookies are a feature that is present but needs to be...