Sha256: 6cc1bcf6b6d327d5d4dd4df54454abf5744ae5f23d7957f336e8880de404f25f

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

module Yardcheck
  class Warning
    extend Color
    include Concord.new(:method_object, :typedef)

    MSG = "#{red('WARNING:')} Unabled to resolve #{yellow('%<typedef>s')} for %<location>s"

    def message
      format(MSG, typedef: typedef.signature, location: method_object.location_pointer)
    end
  end # Warning
end # Yardcheck

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yardcheck-0.0.3 lib/yardcheck/warning.rb
yardcheck-0.0.2 lib/yardcheck/warning.rb
yardcheck-0.0.1 lib/yardcheck/warning.rb