Skip to content

Commit 2f0e6ba

Browse files
author
DanielYouCan
committed
No method error array fix
1 parent 7d3f6fc commit 2f0e6ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/origami/array.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def do_type_check #:nodoc:
188188

189189
self.each_with_index do |object, index|
190190
index_type = array_type.is_a?(::Array) ? array_type[index % array_type.size] : array_type
191+
index_type = index_type.is_a?(::Array) ? index_type[index % index_type.size] : index_type
191192

192193
begin
193194
object_value = object.solve

0 commit comments

Comments
 (0)