Class: Ree::Contracts::EngineProxy
- Defined in:
- lib/ree/contracts/engine_proxy.rb
Instance Method Summary collapse
-
#initialize(engine) ⇒ EngineProxy
constructor
A new instance of EngineProxy.
- #throws(*errors) ⇒ Object
Constructor Details
#initialize(engine) ⇒ EngineProxy
Returns a new instance of EngineProxy.
5 6 7 |
# File 'lib/ree/contracts/engine_proxy.rb', line 5 def initialize(engine) @engine = engine end |
Instance Method Details
#throws(*errors) ⇒ Object
9 10 11 |
# File 'lib/ree/contracts/engine_proxy.rb', line 9 def throws(*errors) @engine.add_errors(*errors) end |