Module: VoiceForm::ClassMethods
- Defined in:
- lib/voice_form/form_methods.rb
Instance Method Summary collapse
Instance Method Details
#start_voice_form(call) ⇒ Object
25 26 27 28 |
# File 'lib/voice_form/form_methods.rb', line 25 def start_voice_form(call) raise "No voice form defined" unless self.new.start_voice_form(call) end |
#voice_form(options = {}, &block) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/voice_form/form_methods.rb', line 12 def voice_form(={}, &block) raise "Voice form requires block" unless block_given? self.class_eval do include InstanceMethods cattr_accessor :voice_form_options attr_accessor :form, :call end self. = [, block] end |