Class: Puma::MiniSSL::EngineWrapper
- Inherits:
-
Object
- Object
- Puma::MiniSSL::EngineWrapper
- Extended by:
- Delegation
- Defined in:
- lib/puma/minissl.rb
Instance Method Summary collapse
-
#initialize(engine) ⇒ EngineWrapper
constructor
A new instance of EngineWrapper.
- #read ⇒ Object
Methods included from Delegation
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
#read ⇒ Object
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.}") end end |