What is the name given to @foo

This will sound like a daft question, but when discussing code with people we’re never quite sure how to refer to

@foo {something: lol}

Is it known as an attribute? I have to fight by rails background to not refer to it as an instance variable!

It’s a “module attribute”.

See Kernel — Elixir v1.16.0

Reads and writes attributes of the current module.

2 Likes

Thanks, my google (and seemingly doc!)-fu let me down bigtime!