class BehaveFun::Decorator
Public Instance Methods
add_child(child)
click to toggle source
Calls superclass method
# File lib/behave_fun/decorator.rb, line 19 def add_child(child) if children.size > 0 raise Error, 'A decorator task cannot have more than one child' end super end
child_fail()
click to toggle source
# File lib/behave_fun/decorator.rb, line 11 def child_fail fail end
child_running()
click to toggle source
# File lib/behave_fun/decorator.rb, line 15 def child_running running end
child_success()
click to toggle source
# File lib/behave_fun/decorator.rb, line 7 def child_success success end
execute()
click to toggle source
# File lib/behave_fun/decorator.rb, line 3 def execute children[0].run end