Class: Hanami::Console::Context Private

Inherits:
Module
  • Object
show all
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

Since:

  • 2.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Since:

  • 2.0.0



19
20
21
22
23
24
25
26
27
# File 'lib/hanami/console/context.rb', line 19

def initialize(app)
  super()
  @app = app

  define_context_methods
  include Plugins::SliceReaders.new(app)

  Plugins::UnbootedSliceWarnings.activate
end

Instance Attribute Details

#appObject (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.

Since:

  • 2.0.0



15
16
17
# File 'lib/hanami/console/context.rb', line 15

def app
  @app
end