Sha256: 38237227731ab6d3fbc25d1b7763308d1b7d33b9f24cc5c5f30c818ad1e44366

Contents?: true

Size: 429 Bytes

Versions: 7

Compression:

Stored size: 429 Bytes

Contents

# typed: true
# frozen_string_literal: true

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-2.1.0 lib/packwerk/parsers.rb
packwerk-2.0.0 lib/packwerk/parsers.rb
packwerk-1.4.0 lib/packwerk/parsers.rb
packwerk-1.3.2 lib/packwerk/parsers.rb
packwerk-1.3.1 lib/packwerk/parsers.rb
packwerk-1.3.0 lib/packwerk/parsers.rb
packwerk-1.2.0 lib/packwerk/parsers.rb