Class: RailsAiBridge::Config::Rubydex
- Inherits:
-
Object
- Object
- RailsAiBridge::Config::Rubydex
- Defined in:
- lib/rails_ai_bridge/config/rubydex.rb
Overview
Holds rubydex semantic analysis configuration settings.
Rubydex is an optional dependency providing static semantic analysis of Ruby codebases via Shopify's rubydex toolkit.
Instance Attribute Summary collapse
-
#rubydex_enabled ⇒ Boolean
Whether rubydex integration is enabled.
-
#rubydex_index_path ⇒ String
Path to store the rubydex index (relative to Rails.root).
-
#semantic_context_depth ⇒ Symbol
Depth of semantic context in generated files (:summary, :standard, :full).
-
#semantic_introspector_enabled ⇒ Boolean
Whether the semantic introspector is enabled.
Instance Method Summary collapse
-
#initialize ⇒ Rubydex
constructor
A new instance of Rubydex.
Constructor Details
#initialize ⇒ Rubydex
Returns a new instance of Rubydex.
22 23 24 25 26 27 |
# File 'lib/rails_ai_bridge/config/rubydex.rb', line 22 def initialize @rubydex_enabled = false @rubydex_index_path = 'tmp/rubydex_index' @semantic_introspector_enabled = false @semantic_context_depth = :standard end |
Instance Attribute Details
#rubydex_enabled ⇒ Boolean
Returns whether rubydex integration is enabled.
11 12 13 |
# File 'lib/rails_ai_bridge/config/rubydex.rb', line 11 def rubydex_enabled @rubydex_enabled end |
#rubydex_index_path ⇒ String
Returns path to store the rubydex index (relative to Rails.root).
14 15 16 |
# File 'lib/rails_ai_bridge/config/rubydex.rb', line 14 def rubydex_index_path @rubydex_index_path end |
#semantic_context_depth ⇒ Symbol
Returns depth of semantic context in generated files (:summary, :standard, :full).
20 21 22 |
# File 'lib/rails_ai_bridge/config/rubydex.rb', line 20 def semantic_context_depth @semantic_context_depth end |
#semantic_introspector_enabled ⇒ Boolean
Returns whether the semantic introspector is enabled.
17 18 19 |
# File 'lib/rails_ai_bridge/config/rubydex.rb', line 17 def semantic_introspector_enabled @semantic_introspector_enabled end |