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