Class: Terminalwire::Server::Thor::Shell

Inherits:
Thor::Shell::Basic
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/terminalwire/server/thor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ Shell

Returns a new instance of Shell.



15
16
17
18
# File 'lib/terminalwire/server/thor.rb', line 15

def initialize(context, *, **, &)
  @context = context
  super(*,**,&)
end

Instance Attribute Details

#contextObject (readonly)

Encapsulates all of the IO resources for a Terminalwire adapter.



10
11
12
# File 'lib/terminalwire/server/thor.rb', line 10

def context
  @context
end