Class: RSpec::Core::Notifications::CustomNotification
- Inherits:
-
Struct
- Object
- Struct
- RSpec::Core::Notifications::CustomNotification
- Defined in:
- lib/rspec/core/notifications.rb
Overview
CustomNotification
is used when sending custom events to formatters /
other registered listeners, it creates attributes based on supplied hash
of options.
Class Method Summary (collapse)
-
+ (CustomNotification) for(options = {})
Build a custom notification based on the supplied option key / values.
Class Method Details
+ (CustomNotification) for(options = {})
Build a custom notification based on the supplied option key / values.
492 493 494 495 |
# File 'lib/rspec/core/notifications.rb', line 492 def self.for(={}) return NullNotification if .keys.empty? new(*.keys).new(*.values) end |