class RSpec::Core::Notifications::CustomNotification
‘CustomNotification` is used when sending custom events to formatters / other registered listeners, it creates attributes based on supplied hash of options.
Public Class Methods
for(options={})
click to toggle source
@param options [Hash] A hash of method / value pairs to create on this notification @return [CustomNotification]
Build a custom notification based on the supplied option key / values.
# File lib/rspec/core/notifications.rb, line 515 def self.for(options={}) return NullNotification if options.keys.empty? new(*options.keys).new(*options.values) end