Class: EnterTofu

Inherits:
Tofu::Tofu show all
Defined in:
lib/tofu.rb

Instance Attribute Summary

Attributes inherited from Tofu::Tofu

#session

Instance Method Summary collapse

Methods inherited from Tofu::Tofu

#a_and_update, #action, add_erb, #do_else, #initialize, #on_update_script, reload_erb, reload_erb1, #send_request, set_erb, #to_div, #to_elem, #to_html, #to_inner_html, #to_span, #tofu_class, #tofu_id, #update_after, #update_js, #update_me

Constructor Details

This class inherits a constructor from Tofu::Tofu

Instance Method Details

#do_enter(context, params) ⇒ Object



643
644
645
646
647
648
# File 'lib/tofu.rb', line 643

def do_enter(context, params)
  hint ,= params['hint']
  @session.hint = hint || ''
  text ,= params['text']
  @session.text = text || ''
end