Sha256: 2b38f4c8afd27495aef025008458f363aa63a1217afc4abaed934f29e562ab00

Contents?: true

Size: 649 Bytes

Versions: 10

Compression:

Stored size: 649 Bytes

Contents

# frozen_string_literal: true

module Appydave
  module Tools
    module GptContext
      # Struct with keyword_init: true to allow named parameters
      Options = Struct.new(
        :include_patterns,
        :exclude_patterns,
        :format,
        :line_limit,
        :debug,
        :output_target,
        :working_directory,
        keyword_init: true
      ) do
        def initialize(**args)
          super
          self.include_patterns ||= []
          self.exclude_patterns ||= []
          self.format ||= 'tree,content'
          self.debug ||= 'none'
          self.output_target ||= []
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
appydave-tools-0.11.9 lib/appydave/tools/gpt_context/options.rb
appydave-tools-0.11.8 lib/appydave/tools/gpt_context/options.rb
appydave-tools-0.11.7 lib/appydave/tools/gpt_context/options.rb
appydave-tools-0.11.6 lib/appydave/tools/gpt_context/options.rb
appydave-tools-0.11.5 lib/appydave/tools/gpt_context/options.rb
appydave-tools-0.11.4 lib/appydave/tools/gpt_context/options.rb
appydave-tools-0.11.3 lib/appydave/tools/gpt_context/options.rb
appydave-tools-0.11.2 lib/appydave/tools/gpt_context/options.rb
appydave-tools-0.11.1 lib/appydave/tools/gpt_context/options.rb
appydave-tools-0.11.0 lib/appydave/tools/gpt_context/options.rb