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



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

#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



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

def app
  @app
end