From 07ed577eba341f0ff0d7eebf4c1c2cc23083cba7 Mon Sep 17 00:00:00 2001 From: Austin Ziegler Date: Sun, 27 Jan 2019 00:03:42 -0500 Subject: =?UTF-8?q?Revert=20PR#47=20"Add=20#to=5Fary=20to=20Diff::LCS::Cha?= =?UTF-8?q?nge=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commits 01e0cae and 3b4d2be because they introduce fatally breaking changes in the tests that were hidden by broken CI. * 01e0cae: Add #to_ary to Diff::LCS::Change and Diff::LCS::ContextChange [Akinori MUSHA] * 3b4d2be: Mention in rdoc that Diff::LCS::ContextChange can be converted to an array [Akinori MUSHA] --- lib/diff/lcs/change.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/diff/lcs') diff --git a/lib/diff/lcs/change.rb b/lib/diff/lcs/change.rb index 8dae83b..9229069 100644 --- a/lib/diff/lcs/change.rb +++ b/lib/diff/lcs/change.rb @@ -41,8 +41,6 @@ class Diff::LCS::Change [ @action, @position, @element ] end - alias to_ary to_a - def self.from_a(arr) arr = arr.flatten(1) case arr.size @@ -134,8 +132,6 @@ class Diff::LCS::ContextChange < Diff::LCS::Change ] end - alias to_ary to_a - def inspect(*args) to_a.inspect end -- cgit v1.2.1