Class: Decorators::Invert

Inherits:
Decorator
  • Object
show all
Defined in:
lib/behave_fun/decorators/invert.rb

Instance Method Summary collapse

Instance Method Details

#child_failObject



3
4
5
# File 'lib/behave_fun/decorators/invert.rb', line 3

def child_fail
  success
end

#child_successObject



7
8
9
# File 'lib/behave_fun/decorators/invert.rb', line 7

def child_success
  fail
end