From bf0ca7c907992c80bdb87a0d2a85ac3019f6d1c9 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Sun, 30 Aug 2015 02:06:10 +0200 Subject: [PATCH] Alias Ruby::Node#to_ary to #to_a JRuby 1.7 uses to_ary opposed to to_a. --- lib/oga/ruby/node.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/oga/ruby/node.rb b/lib/oga/ruby/node.rb index 939d984..5be1395 100644 --- a/lib/oga/ruby/node.rb +++ b/lib/oga/ruby/node.rb @@ -44,6 +44,8 @@ module Oga @children end + alias_method :to_ary, :to_a + ## # Returns a "to_a" call node. #