Module: Fortitude::Widget::Staticization::ClassMethods
- Defined in:
- lib/fortitude/widget/staticization.rb
Instance Method Summary collapse
-
#static(*method_names) ⇒ Object
PUBLIC API.
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) = method_names. method_names.each do |method_name| method_name = method_name.to_sym staticized_method = Fortitude::Support::StaticizedMethod.new(self, method_name, ) staticized_method.create_method! end end |