Sha256: fd9db59fc655a80936d0cb6d0ee3dee005e83c96c72f4e110a695443d0dc1568

Contents?: true

Size: 457 Bytes

Versions: 7

Compression:

Stored size: 457 Bytes

Contents

# typed: true
# frozen_string_literal: true

require "packwerk/offense"

module Packwerk
  module Parsers
    autoload :Erb, "packwerk/parsers/erb"
    autoload :Factory, "packwerk/parsers/factory"
    autoload :Ruby, "packwerk/parsers/ruby"

    class ParseResult < Offense; end

    class ParseError < StandardError
      attr_reader :result

      def initialize(result)
        super(result.message)
        @result = result
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
packwerk-1.1.3 lib/packwerk/parsers.rb
packwerk-1.1.2 lib/packwerk/parsers.rb
packwerk-1.1.1 lib/packwerk/parsers.rb
packwerk-1.1.0 lib/packwerk/parsers.rb
packwerk-1.0.2 lib/packwerk/parsers.rb
packwerk-1.0.1 lib/packwerk/parsers.rb
packwerk-1.0.0 lib/packwerk/parsers.rb