Class variables Class variables Class variables are associated to classes instead of instances. They are prefixed with two “at” signs (@@ ). For example: class Counter @...
Class variables Class variables Class variables are associated to classes instead of instances. They are prefixed with two “at” signs (@@ ). For example: class Counter @...
Constants Pseudo Constants Dynamic assignment Constants Constants can be declared at the top level or inside other types. They must start with a capital letter: PI = 3.14 ...
Configuring the inflector Using the inflector in a component Replacing the inflector Hanami includes an inflector that supports the pluralization, singularization and humaniza...
Splats and tuples Splatting a tuple Double splats and named tuples Double splatting a named tuple Splats and tuples A method can receive a variable number of arguments by us...