Sha256: 987a0a0042bc1df83fd1d95e1fc4a143d13b64ded91a32ebab39e46de2413c58

Contents?: true

Size: 378 Bytes

Versions: 3

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

module Pragmater
  module Configuration
    # Defines the content of the configuration for use throughout the gem.
    Model = Struct.new(
      :comments,
      :patterns,
      :root_dir
    ) do
      def initialize(**)
        super
        self[:comments] = Array comments
        self[:patterns] = Array patterns
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pragmater-13.0.2 lib/pragmater/configuration/model.rb
pragmater-13.0.1 lib/pragmater/configuration/model.rb
pragmater-13.0.0 lib/pragmater/configuration/model.rb