class RSpec::Core::Notifications::DeprecationNotification

Public Class Methods

from_hash(data) click to toggle source

@api Convenience way to initialize the notification

# File lib/rspec/core/notifications.rb, line 497
def self.from_hash(data)
  new data[:deprecated], data[:message], data[:replacement], data[:call_site]
end