Class: Hanami::Console::Context Private
- Inherits:
-
Module
- Object
- Module
- Hanami::Console::Context
- Defined in:
- lib/hanami/console/context.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Hanami app console context
Instance Attribute Summary collapse
- #app ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(app) ⇒ Context
constructor
private
A new instance of Context.
Constructor Details
#initialize(app) ⇒ Context
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Context.
18 19 20 21 22 23 24 |
# File 'lib/hanami/console/context.rb', line 18 def initialize(app) super() @app = app define_context_methods include Plugins::SliceReaders.new(app) end |
Instance Attribute Details
#app ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 |
# File 'lib/hanami/console/context.rb', line 14 def app @app end |