Class: PointRb::Actions::CreateLayout
- Inherits:
-
Object
- Object
- PointRb::Actions::CreateLayout
- Defined in:
- lib/pointrb/actions/create_layout.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ CreateLayout
constructor
A new instance of CreateLayout.
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 |