Sha256: 8d2755da7943e17a42a79cfb3a48cea5f706aacaaed383fb2222e7e3ed16de21

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

module JapaneseCalendar
  module Deprecation
    module Reporting #:nodoc:
      private

      def deprecate_directive(directive, replacement)
        deprecate(directive, "Please use #{replacement} instead.")
      end

      def deprecate(directive, message)
        warn "#{directive} is deprecated. #{message}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
japanese_calendar-0.4.2 lib/japanese_calendar/deprecation/reporting.rb