Module: Controll::ParamAssistant::Helper::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#param_assistant(clazz) ⇒ Object



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

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