Class: HrrRbSsh::Connection::RequestHandler
- Inherits:
-
Object
- Object
- HrrRbSsh::Connection::RequestHandler
- Defined in:
- lib/hrr_rb_ssh/connection/request_handler.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ RequestHandler
constructor
A new instance of RequestHandler.
- #run(context) ⇒ Object
Constructor Details
#initialize(&block) ⇒ RequestHandler
Returns a new instance of RequestHandler.
9 10 11 12 |
# File 'lib/hrr_rb_ssh/connection/request_handler.rb', line 9 def initialize &block @logger = HrrRbSsh::Logger.new self.class.name @proc = block end |
Instance Method Details
#run(context) ⇒ Object
13 14 15 |
# File 'lib/hrr_rb_ssh/connection/request_handler.rb', line 13 def run context @proc.call context end |