update

ENV.update(hash) â Hash
ENV.update(hash) { |name, old_value, new_value| } â Hash
Class Public methods

Adds the contents of hash to the environment variables. If no block is specified entries with duplicate keys are overwritten, otherwise the value of each duplicate name is determined by calling the block with the key, its value from the environment and its value from the hash.

doc_ruby_on_rails
2015-04-05 09:00:47
Comments
Leave a Comment

Please login to continue.