Class: Ree::Contracts::EngineProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/ree/contracts/engine_proxy.rb

Instance Method Summary collapse

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