mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Collection for #given is now an array of ValueWrapper
This commit is contained in:
parent
faf3bef05c
commit
6bf07e3967
1 changed files with 2 additions and 2 deletions
|
@ -81,9 +81,9 @@ module Spectator
|
||||||
end
|
end
|
||||||
|
|
||||||
def {{to_a_method_name.id}}
|
def {{to_a_method_name.id}}
|
||||||
Array(typeof(%first)).new.tap do |%array|
|
Array(::Spectator::ValueWrapper).new.tap do |%array|
|
||||||
%collection.each do |%item|
|
%collection.each do |%item|
|
||||||
%array << %item
|
%array << ::Spectator::TypedValueWrapper(typeof(%item)).new(%item)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue