Sha256: 6ee5bb014e8a1a789fb3504ac75e60525b4389af65856f7edd7432eab16aba67

Contents?: true

Size: 336 Bytes

Versions: 43

Compression:

Stored size: 336 Bytes

Contents

module Steep
  module Diagnostic
    module Helper
      def error_name
        name = self.class.name or raise
        name.split(/::/).last or raise
      end

      def full_message
        if detail = detail_lines
          "#{header_line}\n#{detail}"
        else
          "#{header_line}"
        end
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
steep-1.3.0 lib/steep/diagnostic/helper.rb
steep-1.3.0.pre.2 lib/steep/diagnostic/helper.rb
steep-1.3.0.pre.1 lib/steep/diagnostic/helper.rb