Class: RailsAiBridge::Doctor::Checkers::BaseChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_ai_bridge/doctor/checkers/base_checker.rb

Overview

Shared helpers for filesystem and configuration checks against a Rails app.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ void

Parameters:

  • app (Rails::Application)

    host application under inspection



13
14
15
# File 'lib/rails_ai_bridge/doctor/checkers/base_checker.rb', line 13

def initialize(app)
  @app = app
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



9
10
11
# File 'lib/rails_ai_bridge/doctor/checkers/base_checker.rb', line 9

def app
  @app
end

Instance Method Details

#callDoctor::Check

Returns:

Raises:

  • (NotImplementedError)

    unless overridden in a concrete checker



19
20
21
# File 'lib/rails_ai_bridge/doctor/checkers/base_checker.rb', line 19

def call
  raise NotImplementedError, 'subclasses must implement #call'
end