summaryrefslogtreecommitdiff
path: root/lib/diff/lcs/array.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/diff/lcs/array.rb')
-rw-r--r--lib/diff/lcs/array.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/diff/lcs/array.rb b/lib/diff/lcs/array.rb
new file mode 100644
index 0000000..e07f8aa
--- /dev/null
+++ b/lib/diff/lcs/array.rb
@@ -0,0 +1,21 @@
+#! /usr/env/bin ruby
+#--
+# Copyright 2004 Austin Ziegler <diff-lcs@halostatue.ca>
+# adapted from:
+# Algorithm::Diff (Perl) by Ned Konz <perl@bike-nomad.com>
+# Smalltalk by Mario I. Wolczko <mario@wolczko.com>
+# implements McIlroy-Hunt diff algorithm
+#
+# This program is free software. It may be redistributed and/or modified under
+# the terms of the GPL version 2 (or later), the Perl Artistic licence, or the
+# Ruby licence.
+#
+# $Id$
+#++
+# Includes Diff::LCS into the Array built-in class.
+
+require 'diff/lcs'
+
+class Array
+ include Diff::LCS
+end