Sha256: 90e61c8bd3891a142207c2341a3986647bec0e2c3d82b4dda91fe7033b38a5b5

Contents?: true

Size: 744 Bytes

Versions: 6

Compression:

Stored size: 744 Bytes

Contents

module Steep
  class Project
    class Group
      attr_reader :name
      attr_reader :source_pattern
      attr_reader :signature_pattern
      attr_reader :target
      attr_reader :code_diagnostics_config

      def initialize(target, name, source_pattern, signature_pattern, code_diagnostics_config)
        @target = target
        @name = name
        @source_pattern = source_pattern
        @signature_pattern = signature_pattern
        @code_diagnostics_config = code_diagnostics_config
      end

      def project
        target.project
      end

      def possible_source_file?(path)
        source_pattern =~ path
      end

      def possible_signature_file?(path)
        signature_pattern =~ path
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
steep-1.9.3 lib/steep/project/group.rb
steep-1.9.2 lib/steep/project/group.rb
steep-1.9.1 lib/steep/project/group.rb
steep-1.9.0 lib/steep/project/group.rb
steep-1.9.0.dev.2 lib/steep/project/group.rb
steep-1.9.0.dev.1 lib/steep/project/group.rb