Class: PointRb::Actions::CreateLayout

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

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ CreateLayout

Returns a new instance of CreateLayout.



4
5
6
# File 'lib/pointrb/actions/create_layout.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/create_layout.rb', line 8

def call(env)
  env.layout.create
  puts "[Information] Layout '#{env.layout.name}' for project '#{env.project.name}' created."

  @app.call(env)
end