Building Fin-Tech products. Get in touch with me on
Ruby 2.6 KeyError#initialize accepts message, receiver, and key as arguments
Learn about KeyError#initialize method which accepts :message, :receiver and :key as options to set message, receiver and key on KeyError object.
Ruby 2.5 adds KeyError#receiver and KeyError#key
Learn about KeyError#receiver which returns receiver associated with the KeyError object & KeyError#key returns the key which caused the exception
Ruby 2.6 added options to Exception#full_message
Learn about options which Expection#full_message accepts
Using Ruby 2.5's IO#close
Ruby 2.5 was recently [released][ruby_release]. IO class is the basis for all input and output. You can use the publ...
Copyright © 2020 Atul Bhosale