summaryrefslogtreecommitdiff
path: root/lib/asciidoctor/interdoc_reftext.rb
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-06-19 19:42:36 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-06-19 19:43:58 +0200
commit6b19e7a19013db1c344832f0dc12a143071e4188 (patch)
treedbc708bb88f9942528aa1f6a2875b99e3464ff5e /lib/asciidoctor/interdoc_reftext.rb
parent2c363fff560f9f21ebb2eb664ff05a4db0384eda (diff)
Make it compatible with Opal
Note: Changing order of requires is just for esthetic reason.
Diffstat (limited to 'lib/asciidoctor/interdoc_reftext.rb')
-rw-r--r--lib/asciidoctor/interdoc_reftext.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asciidoctor/interdoc_reftext.rb b/lib/asciidoctor/interdoc_reftext.rb
index e1f3389..dc884cb 100644
--- a/lib/asciidoctor/interdoc_reftext.rb
+++ b/lib/asciidoctor/interdoc_reftext.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-require 'asciidoctor'
-require 'asciidoctor/extensions'
+require 'asciidoctor' unless RUBY_PLATFORM == 'opal'
+require 'asciidoctor/extensions' unless RUBY_PLATFORM == 'opal'
require 'asciidoctor/interdoc_reftext/version'
require 'asciidoctor/interdoc_reftext/processor'