Class: PointRb::Actions::DetermineLayoutDirectory
- Inherits:
-
Object
- Object
- PointRb::Actions::DetermineLayoutDirectory
- Defined in:
- lib/pointrb/actions/determine_layout_directory.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ DetermineLayoutDirectory
constructor
A new instance of DetermineLayoutDirectory.
Constructor Details
#initialize(app) ⇒ DetermineLayoutDirectory
Returns a new instance of DetermineLayoutDirectory.
4 5 6 |
# File 'lib/pointrb/actions/determine_layout_directory.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 11 |
# File 'lib/pointrb/actions/determine_layout_directory.rb', line 8 def call(env) env.layout_directory = File.join(ENV['HOME'], '.config', 'pointrb', 'layouts') @app.call(env) end |