Class: RailsAiContext::StaticApp

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_ai_context/static_app.rb

Overview

Stand-in for Rails.application when serving the static tier (app not booted). Introspectors only need #root from the app object; any other method call is a genuine runtime dependency and should surface as NoMethodError so the per-section isolation reports it honestly.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root_path) ⇒ StaticApp

Returns a new instance of StaticApp.



13
14
15
# File 'lib/rails_ai_context/static_app.rb', line 13

def initialize(root_path)
  @root = Pathname.new(root_path.to_s)
end

Instance Attribute Details

#rootObject (readonly)

Returns the value of attribute root.



11
12
13
# File 'lib/rails_ai_context/static_app.rb', line 11

def root
  @root
end