Module: Fortitude::Widget::Staticization::ClassMethods

Defined in:
lib/fortitude/widget/staticization.rb

Instance Method Summary collapse

Instance Method Details

#static(*method_names) ⇒ Object

PUBLIC API



13
14
15
16
17
18
19
20
21
# File 'lib/fortitude/widget/staticization.rb', line 13

def static(*method_names)
  options = method_names.extract_options!

  method_names.each do |method_name|
    method_name = method_name.to_sym
    staticized_method = Fortitude::Support::StaticizedMethod.new(self, method_name, options)
    staticized_method.create_method!
  end
end