Skip to content

Commit

Permalink
Add missing AbstractStruct.[] alias for new
Browse files Browse the repository at this point in the history
  • Loading branch information
pitr-ch committed Mar 9, 2019
1 parent fe386d4 commit 04e9390
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/concurrent/synchronization/abstract_struct.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def ns_initialize(*values)
end
end
clazz.class_exec(&block) unless block.nil?
clazz.singleton_class.send :alias_method, :[], :new
clazz
end
end
Expand Down

0 comments on commit 04e9390

Please sign in to comment.