Class: Appydave::Tools::GptContext::Options
- Inherits:
-
Struct
- Object
- Struct
- Appydave::Tools::GptContext::Options
- Defined in:
- lib/appydave/tools/gpt_context/options.rb
Overview
Struct with keyword_init: true to allow named parameters
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#exclude_patterns ⇒ Object
Returns the value of attribute exclude_patterns.
-
#format ⇒ Object
Returns the value of attribute format.
-
#include_patterns ⇒ Object
Returns the value of attribute include_patterns.
-
#line_limit ⇒ Object
Returns the value of attribute line_limit.
-
#output_target ⇒ Object
Returns the value of attribute output_target.
-
#working_directory ⇒ Object
Returns the value of attribute working_directory.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Options
constructor
A new instance of Options.
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
#debug ⇒ Object
Returns the value of attribute debug
7 8 9 |
# File 'lib/appydave/tools/gpt_context/options.rb', line 7 def debug @debug end |
#exclude_patterns ⇒ Object
Returns the value of attribute exclude_patterns
7 8 9 |
# File 'lib/appydave/tools/gpt_context/options.rb', line 7 def exclude_patterns @exclude_patterns end |
#format ⇒ Object
Returns the value of attribute format
7 8 9 |
# File 'lib/appydave/tools/gpt_context/options.rb', line 7 def format @format end |
#include_patterns ⇒ Object
Returns the value of attribute include_patterns
7 8 9 |
# File 'lib/appydave/tools/gpt_context/options.rb', line 7 def include_patterns @include_patterns end |
#line_limit ⇒ Object
Returns the value of attribute line_limit
7 8 9 |
# File 'lib/appydave/tools/gpt_context/options.rb', line 7 def line_limit @line_limit end |
#output_target ⇒ Object
Returns the value of attribute output_target
7 8 9 |
# File 'lib/appydave/tools/gpt_context/options.rb', line 7 def output_target @output_target end |
#working_directory ⇒ Object
Returns the value of attribute working_directory
7 8 9 |
# File 'lib/appydave/tools/gpt_context/options.rb', line 7 def working_directory @working_directory end |