Class: RSpec::Core::Notifications::DeprecationNotification
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, rspec-core/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.
Class Method Summary
-
.from_hash(data)
Convenience way to initialize the notification.
Instance Attribute Summary
-
#call_site
rw
The
DeprecationNotification
is issued by the reporter when a deprecated part of::RSpec
is encountered. -
#deprecated
rw
The
DeprecationNotification
is issued by the reporter when a deprecated part of::RSpec
is encountered. -
#message
rw
The
DeprecationNotification
is issued by the reporter when a deprecated part of::RSpec
is encountered. -
#replacement
rw
The
DeprecationNotification
is issued by the reporter when a deprecated part of::RSpec
is encountered.
Class Method Details
.from_hash(data)
Convenience way to initialize the notification
# File 'rspec-core/lib/rspec/core/notifications.rb', line 501
def self.from_hash(data) new data[:deprecated], data[: ], data[:replacement], data[:call_site] end
Instance Attribute Details
#call_site (rw)
The DeprecationNotification
is issued by the reporter when a deprecated part of ::RSpec
is encountered. It represents information about the deprecated call site.
# File 'rspec-core/lib/rspec/core/notifications.rb', line 495
DeprecationNotification = Struct.new(:deprecated, :, :replacement, :call_site)
#deprecated (rw)
The DeprecationNotification
is issued by the reporter when a deprecated part of ::RSpec
is encountered. It represents information about the deprecated call site.
# File 'rspec-core/lib/rspec/core/notifications.rb', line 495
DeprecationNotification = Struct.new(:deprecated, :, :replacement, :call_site)
#message (rw)
The DeprecationNotification
is issued by the reporter when a deprecated part of ::RSpec
is encountered. It represents information about the deprecated call site.
# File 'rspec-core/lib/rspec/core/notifications.rb', line 495
DeprecationNotification = Struct.new(:deprecated, :, :replacement, :call_site)
#replacement (rw)
The DeprecationNotification
is issued by the reporter when a deprecated part of ::RSpec
is encountered. It represents information about the deprecated call site.
# File 'rspec-core/lib/rspec/core/notifications.rb', line 495
DeprecationNotification = Struct.new(:deprecated, :, :replacement, :call_site)