Sha256: 1bdf42f7db5e1073786c0070033bedc4b2592c17548f4d7a3a4bd84ee699d7db

Contents?: true

Size: 382 Bytes

Versions: 5

Compression:

Stored size: 382 Bytes

Contents

class RSpec::Core::Formatters::DeprecationFormatter
  # GeneratedDeprecationMessage is a Struct
  GeneratedDeprecationMessage.class_eval do
    def to_s
      msg = String.new("#{@data.deprecated} is deprecated.")
      msg += " Use #{@data.replacement} instead." if @data.replacement
      msg += " Called from #{@data.call_site}."   if @data.call_site
      msg
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opal-rspec-1.1.0.alpha3 lib-opal/opal/rspec/fixes/rspec/core/formatters/deprecation_formatter.rb
opal-rspec-1.1.0.alpha2 lib-opal/opal/rspec/fixes/rspec/core/formatters/deprecation_formatter.rb
opal-rspec-1.1.0.alpha1 lib-opal/opal/rspec/fixes/rspec/core/formatters/deprecation_formatter.rb
opal-rspec-1.0.0 lib-opal/opal/rspec/fixes/rspec/core/formatters/deprecation_formatter.rb
opal-rspec-1.0.0.alpha1 lib-opal/opal/rspec/fixes/rspec/core/formatters/deprecation_formatter.rb