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!
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”.
Reads and writes attributes of the current module.
Thanks, my google (and seemingly doc!)-fu let me down bigtime!