Closed bsushant-athena closed 6 years ago
Hi there. In this case you are just using a defined variable to set the value, not referencing a resource within the template, so using ref!
is not required. You can just do:
GWN_MEM_USAGE gwn_mem_usage
Cheers!
@chrisroberts I already did that but I'm still not getting the value. When I tried puts!(gwn_mem_usage) ..I get empty response
Hi, In my usecase I've some parameters which user provides and then accordingly I've to decide whether to choose A or B. But when I'm accessing this A or B I get reference instead of value.
And in other file I need to access that variable.
The error I get is
So how can I access this variable inside the context as a value?