1
0
mirror of https://github.com/meineerde/rackstash.git synced 2025-10-17 14:01:01 +00:00

Remove redundant private method Rackstash::Fields::Array#new

The method is already provided by the parent class AbstractCollection
This commit is contained in:
Holger Just 2017-02-16 23:04:54 +01:00
parent 6958b8f509
commit 494b64c63a

View File

@ -165,12 +165,6 @@ module Rackstash
return obj.to_ary if obj.respond_to?(:to_ary) return obj.to_ary if obj.respond_to?(:to_ary)
raise TypeError, "no implicit conversion of #{obj.class} into Array" raise TypeError, "no implicit conversion of #{obj.class} into Array"
end end
def new(raw)
self.class.new.tap do |array|
array.raw = raw
end
end
end end
def self.Array(array) def self.Array(array)