Class: RSpec::Core::Formatters::DeprecationFormatter::SpecifiedDeprecationMessage

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec/core/formatters/deprecation_formatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ SpecifiedDeprecationMessage

Returns a new instance of SpecifiedDeprecationMessage



67
68
69
70
# File 'lib/rspec/core/formatters/deprecation_formatter.rb', line 67

def initialize(data)
  @message = data.message
  super deprecation_type_for(data)
end

Instance Attribute Details

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



66
67
68
# File 'lib/rspec/core/formatters/deprecation_formatter.rb', line 66

def type
  @type
end

Instance Method Details

#to_sObject



72
73
74
# File 'lib/rspec/core/formatters/deprecation_formatter.rb', line 72

def to_s
  output_formatted @message
end

#too_many_warnings_messageObject



76
77
78
# File 'lib/rspec/core/formatters/deprecation_formatter.rb', line 76

def too_many_warnings_message
  TOO_MANY_WARNINGS_NOTICE
end