Class: Rootage::Action

Inherits:
Item
  • Object
show all
Defined in:
lib/rootage/action.rb

Overview

Action is an item for phase. This is a really rule, this means items consist by conditions and action, so you can control firing and other conditions.

Instance Method Summary collapse

Methods inherited from Item

#assign, #condition, #copy, #exception, #execute, #key, #process

Instance Method Details

#validate(&b) ⇒ Object



9
10
11
# File 'lib/rootage/action.rb', line 9

def validate(&b)
  self.validator = b
end