Class: HatTrick::WizardDefinition
- Inherits:
-
Object
- Object
- HatTrick::WizardDefinition
- Includes:
- WizardSteps
- Defined in:
- lib/hat_trick/wizard_definition.rb
Instance Attribute Summary collapse
-
#after_callback_for_all_steps ⇒ Object
Returns the value of attribute after_callback_for_all_steps.
-
#before_callback_for_all_steps ⇒ Object
Returns the value of attribute before_callback_for_all_steps.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Attributes included from WizardSteps
Instance Method Summary collapse
- #configured_create_url ⇒ Object
- #configured_update_url ⇒ Object
-
#initialize(config) ⇒ WizardDefinition
constructor
A new instance of WizardDefinition.
- #make_wizard_for(controller) ⇒ Object
Methods included from WizardSteps
#add_step, #delete_step, #find_step, #move_step, #replace_step, #step_after, #step_before, #steps_after, #steps_before
Constructor Details
#initialize(config) ⇒ WizardDefinition
Returns a new instance of WizardDefinition.
12 13 14 15 |
# File 'lib/hat_trick/wizard_definition.rb', line 12 def initialize(config) @config = config @steps = [] end |
Instance Attribute Details
#after_callback_for_all_steps ⇒ Object
Returns the value of attribute after_callback_for_all_steps.
10 11 12 |
# File 'lib/hat_trick/wizard_definition.rb', line 10 def after_callback_for_all_steps @after_callback_for_all_steps end |
#before_callback_for_all_steps ⇒ Object
Returns the value of attribute before_callback_for_all_steps.
10 11 12 |
# File 'lib/hat_trick/wizard_definition.rb', line 10 def before_callback_for_all_steps @before_callback_for_all_steps end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
9 10 11 |
# File 'lib/hat_trick/wizard_definition.rb', line 9 def config @config end |
Instance Method Details
#configured_create_url ⇒ Object
25 26 27 |
# File 'lib/hat_trick/wizard_definition.rb', line 25 def configured_create_url config.create_url end |
#configured_update_url ⇒ Object
29 30 31 |
# File 'lib/hat_trick/wizard_definition.rb', line 29 def configured_update_url config.update_url end |