Class: PointRb::Actions::RetrieveParsedLayout
- Inherits:
-
Object
- Object
- PointRb::Actions::RetrieveParsedLayout
- Defined in:
- lib/pointrb/actions/retrieve_parsed_layout.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ RetrieveParsedLayout
constructor
A new instance of RetrieveParsedLayout.
Constructor Details
#initialize(app) ⇒ RetrieveParsedLayout
Returns a new instance of RetrieveParsedLayout.
4 5 6 |
# File 'lib/pointrb/actions/retrieve_parsed_layout.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/pointrb/actions/retrieve_parsed_layout.rb', line 8 def call(env) layout_manager = PointRb::LayoutManager.new(env.layout_files, env.project) layout_name = env.[:layout].to_sym env.layout = layout_manager.retrieve(layout_name) @app.call(env) end |