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 Sep 19, 2018
1 parent 7d3f6fc commit 2f0e6ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/origami/array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def do_type_check #:nodoc:

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 2f0e6ba

Please sign in to comment.