Module: RubyValve::Core

Included in:
Base
Defined in:
lib/ruby_valve/core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#exceptionObject (readonly)

Returns the value of attribute exception.



5
6
7
# File 'lib/ruby_valve/core.rb', line 5

def exception
  @exception
end

#executedObject (readonly)

Returns the value of attribute executed.



5
6
7
# File 'lib/ruby_valve/core.rb', line 5

def executed
  @executed
end

#executed_stepsObject (readonly)

Returns the value of attribute executed_steps.



5
6
7
# File 'lib/ruby_valve/core.rb', line 5

def executed_steps
  @executed_steps
end

Instance Method Details

#executeObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/ruby_valve/core.rb', line 11

def execute
  init

  if respond_to?(:after_exception)
    begin
      execute_methods
    rescue => e
      @exception = e
      send(:after_exception)
    end
  else
    execute_methods
  end

end

#initObject



7
8
9
# File 'lib/ruby_valve/core.rb', line 7

def init
  @skip_list = []
end

#responseObject



27
28
29
# File 'lib/ruby_valve/core.rb', line 27

def response
  @response
end