Skip to content

Commit

Permalink
No method error array fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYouCan committed Jun 11, 2020
1 parent ac1df80 commit 846782d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/origami/array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def do_type_check #:nodoc:
end

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

begin
object_value = object.solve
Expand Down

0 comments on commit 846782d

Please sign in to comment.