Class: Wizardly::Wizard::DSL
- Inherits:
-
Object
- Object
- Wizardly::Wizard::DSL
- Defined in:
- lib/wizardly/wizard/dsl.rb
Instance Method Summary collapse
- #change_button(name) ⇒ Object
- #create_button(name, opts) ⇒ Object
-
#initialize(config) ⇒ DSL
constructor
A new instance of DSL.
- #mask_passwords(passwords) ⇒ Object (also: #mask_password)
- #set_page(name) ⇒ Object
- #when_canceled_redirect_to(redir) ⇒ Object
-
#when_completed_redirect_to(redir) ⇒ Object
DSL methods.
Constructor Details
#initialize(config) ⇒ DSL
Returns a new instance of DSL.
5 6 7 |
# File 'lib/wizardly/wizard/dsl.rb', line 5 def initialize(config) @config = config end |
Instance Method Details
#change_button(name) ⇒ Object
12 13 14 |
# File 'lib/wizardly/wizard/dsl.rb', line 12 def (name) @config.(name) end |
#create_button(name, opts) ⇒ Object
15 16 17 |
# File 'lib/wizardly/wizard/dsl.rb', line 15 def (name, opts) @config.(name, opts) end |
#mask_passwords(passwords) ⇒ Object Also known as: mask_password
21 22 23 |
# File 'lib/wizardly/wizard/dsl.rb', line 21 def mask_passwords(passwords) @config._mask_passwords(passwords) end |
#set_page(name) ⇒ Object
18 19 20 |
# File 'lib/wizardly/wizard/dsl.rb', line 18 def set_page(name); @config._set_page(name) end |
#when_canceled_redirect_to(redir) ⇒ Object
11 |
# File 'lib/wizardly/wizard/dsl.rb', line 11 def when_canceled_redirect_to(redir); @config._when_canceled_redirect_to(redir); end |
#when_completed_redirect_to(redir) ⇒ Object
DSL methods
10 |
# File 'lib/wizardly/wizard/dsl.rb', line 10 def when_completed_redirect_to(redir); @config._when_completed_redirect_to(redir); end |