Sha256: 97add7d0b99efe8ad6d072caa1fdeefe40eafdc8195fb71b66e5adde152b4a39

Contents?: true

Size: 292 Bytes

Versions: 6

Compression:

Stored size: 292 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Packwerk
  module Validator
    class Result < T::Struct
      extend T::Sig

      const :ok, T::Boolean
      const :error_value, T.nilable(String)

      sig { returns(T::Boolean) }
      def ok?
        ok
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
packwerk-3.2.2 lib/packwerk/validator/result.rb
packwerk-3.2.1 lib/packwerk/validator/result.rb
packwerk-3.2.0 lib/packwerk/validator/result.rb
packwerk-3.1.0 lib/packwerk/validator/result.rb
packwerk-3.0.1 lib/packwerk/validator/result.rb
packwerk-3.0.0 lib/packwerk/validator/result.rb