Class: Wizardly::Wizard::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/wizardly/wizard/dsl.rb

Instance Method Summary collapse

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 change_button(name)
  @config._change_button(name)
end

#create_button(name, opts) ⇒ Object



15
16
17
# File 'lib/wizardly/wizard/dsl.rb', line 15

def create_button(name, opts)
  @config._create_button(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