lib/polyfill.rb in polyfill-0.10.0 vs lib/polyfill.rb in polyfill-1.0.0
- old
+ new
@@ -119,10 +119,10 @@
raise ArgumentError, %Q("#{method_name}" must start with a "." if it's a class method or "#" if it's an instance method)
end
instance_methods, class_methods =
if methods == :all
- [:all, :all]
+ %i[all all]
else
methods
.partition { |m| m.start_with?('#') }
.map { |method_list| method_list.map { |name| name[1..-1].to_sym } }
end