Method: Handle#it

Defined in:
lib/handle.rb

#it(options) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/handle.rb', line 12

def it(options)
  validate(options)

  @result = OpenStruct.new return: yield, success: true, error: nil
  @returns_pool = []
  self
rescue StandardError => e
  error_handler(e)
end