From 71b798f64642f9aec26e7a8b29d6fa42c1c63968 Mon Sep 17 00:00:00 2001 From: hmdne <54514036+hmdne@users.noreply.github.com> Date: Tue, 23 Nov 2021 21:37:49 +0100 Subject: [PATCH] NodeSet#to_a to be aliased to #to_ary --- opal/browser/dom/node_set.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opal/browser/dom/node_set.rb b/opal/browser/dom/node_set.rb index ee3b35b..7c36fa8 100644 --- a/opal/browser/dom/node_set.rb +++ b/opal/browser/dom/node_set.rb @@ -114,6 +114,8 @@ def xpath(path) def to_ary @literal end + + alias to_a to_ary end end; end