Class: RSpec::Core::Notifications::DeprecationNotification
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/notifications.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/notifications.rb
Overview
The ‘DeprecationNotification` is issued by the reporter when a deprecated part of RSpec is encountered. It represents information about the deprecated call site.
Instance Attribute Summary collapse
-
#call_site ⇒ String
An optional call site from which the deprecation was issued.
-
#deprecated ⇒ String
A custom message about the deprecation (alias of message).
-
#message ⇒ String
A custom message about the deprecation.
-
#replacement ⇒ String
An optional replacement for the deprecation.
Class Method Summary collapse
-
.from_hash(data) ⇒ Object
Convenience way to initialize the notification.
Methods inherited from Struct
Instance Attribute Details
#call_site ⇒ String
An optional call site from which the deprecation was issued
491 492 493 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/notifications.rb', line 491 def call_site @call_site end |
#deprecated ⇒ String
A custom message about the deprecation (alias of message)
491 492 493 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/notifications.rb', line 491 def deprecated @deprecated end |
#message ⇒ String
A custom message about the deprecation
491 492 493 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/notifications.rb', line 491 def @message end |
#replacement ⇒ String
An optional replacement for the deprecation
491 492 493 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/notifications.rb', line 491 def replacement @replacement end |
Class Method Details
.from_hash(data) ⇒ Object
Convenience way to initialize the notification
497 498 499 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/notifications.rb', line 497 def self.from_hash(data) new data[:deprecated], data[:message], data[:replacement], data[:call_site] end |