Class: Puma::MiniSSL::EngineWrapper

Inherits:
Object
  • Object
show all
Extended by:
Delegation
Defined in:
lib/puma/minissl.rb

Instance Method Summary collapse

Methods included from Delegation

forward

Constructor Details

#initialize(engine) ⇒ EngineWrapper

Returns a new instance of EngineWrapper.



17
18
19
# File 'lib/puma/minissl.rb', line 17

def initialize(engine)
  @engine=engine
end

Instance Method Details

#readObject



22
23
24
25
26
27
28
# File 'lib/puma/minissl.rb', line 22

def read
  begin
    @engine.read
  rescue RuntimeException=>e
    raise IOError.new("Unable to read from engine, #{e.message}")
  end
end