Sha256: afd2e775f9a137751fa8e5fe9556d5edf3f050c4d1afc1be7908501fa4657303

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

module StructuredWarnings
  class Warner
    def format(warning, message, stack)
      "#{stack.shift} : #{message} (#{warning})"
    end

#    formats an exception like stack frame
#    def collect_frame(stack)
#      stack.collect { |frame| "        from #{frame}" }.join("\n")
#    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
structured_warnings-0.1.0 lib/structured_warnings/warner.rb