Class: PointRb::Actions::DetermineLayoutDirectory

Inherits:
Object
  • Object
show all
Defined in:
lib/pointrb/actions/determine_layout_directory.rb

Instance Method Summary collapse

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