summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-01-22 01:52:37 -0700
committerDan Allen <dan.j.allen@gmail.com>2019-01-22 01:52:37 -0700
commit820eada6c6aeb3ec4d358d7cbfa12ccd8b6a1ce7 (patch)
treecbc0d63fffd03d721abe8e5c691928d19df02c43
parent238740c39b5d4b0b629d105262ea0b9954cb9e29 (diff)
commit missing file containing MatchData#names backport
-rw-r--r--lib/asciidoctor/core_ext/match_data/names.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/asciidoctor/core_ext/match_data/names.rb b/lib/asciidoctor/core_ext/match_data/names.rb
new file mode 100644
index 00000000..7656a705
--- /dev/null
+++ b/lib/asciidoctor/core_ext/match_data/names.rb
@@ -0,0 +1,6 @@
+# NOTE remove once implemented in Opal
+class MatchData
+ def names
+ []
+ end
+end unless MatchData.method_defined? :names