Class: RailsAiContext::StaticApp
- Inherits:
-
Object
- Object
- RailsAiContext::StaticApp
- 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
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
-
#initialize(root_path) ⇒ StaticApp
constructor
A new instance of StaticApp.
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
#root ⇒ Object (readonly)
Returns the value of attribute root.
11 12 13 |
# File 'lib/rails_ai_context/static_app.rb', line 11 def root @root end |