Class: RSpec::Core::Notifications::CustomNotification
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/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
-
.for(options = {}) ⇒ CustomNotification
Build a custom notification based on the supplied option key / values.
Methods inherited from Struct
Class Method Details
.for(options = {}) ⇒ CustomNotification
Build a custom notification based on the supplied option key / values.
515 516 517 518 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/notifications.rb', line 515 def self.for(={}) return NullNotification if .keys.empty? new(*.keys).new(*.values) end |