R
rejoc
Hello,
I new to Ruby and curious about this language I do use (yeet).
I was browsing through some libraries/modules and I found a line looking
like
a[:i] ||= "a string"
I could not find this syntax in any manual online (and googling "||=" is
not of much help :-( )
Can anyone tell me what it means
TiA
I new to Ruby and curious about this language I do use (yeet).
I was browsing through some libraries/modules and I found a line looking
like
a[:i] ||= "a string"
I could not find this syntax in any manual online (and googling "||=" is
not of much help :-( )
Can anyone tell me what it means
TiA