What are the different environment variables present in the ruby?
Answer / Seema Saher
Ruby has several environment variables, some of which include:nn- RUBYOPT: used to pass command-line options to Ruby.n- GEM_HOME: specifies the location of the local Gem directory.n- BUNDLE_GEMFILE: points to the Bundler Gemfile when using the bundler gem manager.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain about variables?
What is mvc? And how it works?
Tell me what is the difference between calling super and calling super()?
What are class libraries in Ruby?
What are ruby blocks.
How to create ruby object?
Explain how Symbol is different from variables?
Does hash use “ #==” or “#eql?” To compare hash keys?
How would you freeze an object in ruby? Can you provide a simple example?
What is the difference between throw/catch and raise/rescue?
Explain the difference in scope for these two variables: @@name and @name?
Tell me what are blocks and procs?