Class: EagerEye::Configuration
- Inherits:
-
Object
- Object
- EagerEye::Configuration
- Defined in:
- lib/eager_eye/configuration.rb
Constant Summary collapse
- DEFAULT_DETECTORS =
%i[loop_association serializer_nesting missing_counter_cache custom_method_query].freeze
Instance Attribute Summary collapse
-
#app_path ⇒ Object
Returns the value of attribute app_path.
-
#enabled_detectors ⇒ Object
Returns the value of attribute enabled_detectors.
-
#excluded_paths ⇒ Object
Returns the value of attribute excluded_paths.
-
#fail_on_issues ⇒ Object
Returns the value of attribute fail_on_issues.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 |
# File 'lib/eager_eye/configuration.rb', line 9 def initialize @excluded_paths = [] @enabled_detectors = DEFAULT_DETECTORS.dup @app_path = "app" @fail_on_issues = true end |
Instance Attribute Details
#app_path ⇒ Object
Returns the value of attribute app_path.
5 6 7 |
# File 'lib/eager_eye/configuration.rb', line 5 def app_path @app_path end |
#enabled_detectors ⇒ Object
Returns the value of attribute enabled_detectors.
5 6 7 |
# File 'lib/eager_eye/configuration.rb', line 5 def enabled_detectors @enabled_detectors end |
#excluded_paths ⇒ Object
Returns the value of attribute excluded_paths.
5 6 7 |
# File 'lib/eager_eye/configuration.rb', line 5 def excluded_paths @excluded_paths end |
#fail_on_issues ⇒ Object
Returns the value of attribute fail_on_issues.
5 6 7 |
# File 'lib/eager_eye/configuration.rb', line 5 def fail_on_issues @fail_on_issues end |