Explain about environment variables present in ruby?
Answer / Jaiveer Singh
Environment variables in Ruby can be accessed using the ENV hash. They are global variables that store strings of text that are available to processes during runtime. To set an environment variable, you can use the system method with the 'export' command.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between ruby 1.9 and ruby 2.0?
What is a symbol in ruby?
Tell me can you call a private method outside a ruby class using its object?
How would you freeze an object in ruby? Can you provide a simple example?
What are advantages of using ruby?
How to create a new time instance in Ruby?
Tell me how symbol is different from variables?
What's the difference in scope for these two variables: @name and @@name?
Explain me what the difference is between false and nil in ruby?
Describe class libraries in Ruby?
what is the purpose of the rakefile available in the demo directory in ruby?
What are the loops in ruby?