123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Core::Notifications::DeprecationNotification

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
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

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

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/notifications.rb', line 499

def self.from_hash(data)
  new data[:deprecated], data[:message], 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.

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/notifications.rb', line 493

DeprecationNotification = Struct.new(:deprecated, :message, :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.

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/notifications.rb', line 493

DeprecationNotification = Struct.new(:deprecated, :message, :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.

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/notifications.rb', line 493

DeprecationNotification = Struct.new(:deprecated, :message, :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.

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/notifications.rb', line 493

DeprecationNotification = Struct.new(:deprecated, :message, :replacement, :call_site)