Class: RSpec::Core::Notifications::CustomNotification
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Struct
|
|
|
Instance Chain:
self,
Struct
|
|
| Inherits: |
Struct
|
| Defined in: | rspec-core/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
-
.for(options = {}) ⇒ CustomNotification
Build a custom notification based on the supplied option key / values.
Class Method Details
.for(options = {}) ⇒ CustomNotification
Build a custom notification based on the supplied option key / values.
# File 'rspec-core/lib/rspec/core/notifications.rb', line 519
def self.for(={}) return NullNotification if .keys.empty? new(*.keys).new(*.values) end