module AutomationObject::CompositeHook::ClassMethods

Class level methods

Public Instance Methods

after_create(instance_method) click to toggle source

@param instance_method [Symbol] method to call

# File lib/automation_object/helpers/composite_hook.rb, line 26
def after_create(instance_method)
  after_create_hooks.push(instance_method)
end
after_create_hooks() click to toggle source

@return [Array<Symbol>] list of methods to call

# File lib/automation_object/helpers/composite_hook.rb, line 31
def after_create_hooks
  @after_create_hooks = [] unless defined? @after_create_hooks
  @after_create_hooks
end
before_create(instance_method) click to toggle source

@param instance_method [Symbol] method to call

# File lib/automation_object/helpers/composite_hook.rb, line 37
def before_create(instance_method)
  before_create_hooks.push(instance_method)
end
before_create_hooks() click to toggle source

@return [Array<Symbol>] list of methods to call

# File lib/automation_object/helpers/composite_hook.rb, line 42
def before_create_hooks
  @before_create_hooks = [] unless defined? @before_create_hooks
  @before_create_hooks
end