Global
Store data globally
Usage
use global
global.name = "John"
puts global.name
The shorter way ~
use _ as "global"
_.a = 10
_.b = 20
Last updated
Was this helpful?
Store data globally
use global
global.name = "John"
puts global.name
The shorter way ~
use _ as "global"
_.a = 10
_.b = 20
Last updated
Was this helpful?