lib/hot_module.rb in hot_module-1.0.0.alpha8 vs lib/hot_module.rb in hot_module-1.0.0.alpha9
- old
+ new
@@ -33,11 +33,13 @@
klass.include ContentMethod
end
# Extends the component class
module ClassMethods
- def camelcased(method_symbol)
- alias_method(method_symbol.to_s.gsub(/(?!^)_[a-z0-9]/) { |match| match[1].upcase }, method_symbol)
+ def camelcased(method_symbols)
+ Array(method_symbols).each do |method_symbol|
+ alias_method(method_symbol.to_s.gsub(/(?!^)_[a-z0-9]/) { |match| match[1].upcase }, method_symbol)
+ end
end
def html_file_extensions = %w[module.html tmpl.html html].freeze
def processed_css_extension = "css-local"