summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorSeba Gamboa <[email protected]>2015-10-09 15:34:14 -0300
committerSeba Gamboa <[email protected]>2015-10-09 15:35:28 -0300
commit3aeff3375fa33fda2296875038bb2b82b66f5195 (patch)
tree7ed4a05f71f2f5209349db4f6d968a2a9f542199 /lib
parentc00ab2a6974234288508728a4635500ee53bf09d (diff)
downloadyard-mruby-3aeff3375fa33fda2296875038bb2b82b66f5195.tar.gz
yard-mruby-3aeff3375fa33fda2296875038bb2b82b66f5195.zip
prevent double loading of yard/mruby
Diffstat (limited to 'lib')
-rw-r--r--lib/yard-mruby.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yard-mruby.rb b/lib/yard-mruby.rb
index 4441410..92e26cf 100644
--- a/lib/yard-mruby.rb
+++ b/lib/yard-mruby.rb
@@ -1 +1 @@
-require 'yard/mruby'
+require 'yard/mruby' unless Kernel.const_defined?(:YARD) && YARD.const_defined?(:MRuby)