Module: Controll::SessionAssistant::Helper::ClassMethods

Defined in:
lib/controll/assistant/session_assistant.rb

Instance Method Summary collapse

Instance Method Details

#session_assistant(clazz) ⇒ Object



15
16
17
18
19
# File 'lib/controll/assistant/session_assistant.rb', line 15

def session_assistant clazz
  define_method :session_assistant do
    @session_assistant ||= clazz.new self
  end
end