Class: PointRb::Actions::RetrieveLayoutFiles
- Inherits:
-
Object
- Object
- PointRb::Actions::RetrieveLayoutFiles
- Defined in:
- lib/pointrb/actions/retrieve_layout_files.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ RetrieveLayoutFiles
constructor
A new instance of RetrieveLayoutFiles.
Constructor Details
#initialize(app) ⇒ RetrieveLayoutFiles
Returns a new instance of RetrieveLayoutFiles.
4 5 6 |
# File 'lib/pointrb/actions/retrieve_layout_files.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/pointrb/actions/retrieve_layout_files.rb', line 8 def call(env) layout_storage_manager = PointRb::LayoutStorageManager.new(env.layout_directory) env.layout_files = layout_storage_manager.retrieve_all @app.call(env) end |