Class: Appydave::Tools::GptContext::Options

Inherits:
Struct
  • Object
show all
Defined in:
lib/appydave/tools/gpt_context/options.rb

Overview

Struct with keyword_init: true to allow named parameters

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Options

Returns a new instance of Options.



17
18
19
20
21
22
23
24
# File 'lib/appydave/tools/gpt_context/options.rb', line 17

def initialize(**args)
  super
  self.include_patterns ||= []
  self.exclude_patterns ||= []
  self.format ||= 'tree,content'
  self.debug ||= 'none'
  self.output_target ||= []
end

Instance Attribute Details

#debugObject

Returns the value of attribute debug

Returns:

  • (Object)

    the current value of debug



7
8
9
# File 'lib/appydave/tools/gpt_context/options.rb', line 7

def debug
  @debug
end

#exclude_patternsObject

Returns the value of attribute exclude_patterns

Returns:

  • (Object)

    the current value of exclude_patterns



7
8
9
# File 'lib/appydave/tools/gpt_context/options.rb', line 7

def exclude_patterns
  @exclude_patterns
end

#formatObject

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



7
8
9
# File 'lib/appydave/tools/gpt_context/options.rb', line 7

def format
  @format
end

#include_patternsObject

Returns the value of attribute include_patterns

Returns:

  • (Object)

    the current value of include_patterns



7
8
9
# File 'lib/appydave/tools/gpt_context/options.rb', line 7

def include_patterns
  @include_patterns
end

#line_limitObject

Returns the value of attribute line_limit

Returns:

  • (Object)

    the current value of line_limit



7
8
9
# File 'lib/appydave/tools/gpt_context/options.rb', line 7

def line_limit
  @line_limit
end

#output_targetObject

Returns the value of attribute output_target

Returns:

  • (Object)

    the current value of output_target



7
8
9
# File 'lib/appydave/tools/gpt_context/options.rb', line 7

def output_target
  @output_target
end

#working_directoryObject

Returns the value of attribute working_directory

Returns:

  • (Object)

    the current value of working_directory



7
8
9
# File 'lib/appydave/tools/gpt_context/options.rb', line 7

def working_directory
  @working_directory
end