lib/plurimath/math/function.rb in plurimath-0.5.0 vs lib/plurimath/math/function.rb in plurimath-0.6.0
- old
+ new
@@ -4,11 +4,13 @@
end
end
end
# Include the first level files before the next
-(
- Dir.glob(File.join(__dir__, "function", "*.rb")) +
- Dir.glob(File.join(__dir__, "function", "*", "*.rb"))
-).each do |file|
- require file
+if RUBY_ENGINE != 'opal'
+ (
+ Dir.glob(File.join(__dir__, "function", "*.rb")) +
+ Dir.glob(File.join(__dir__, "function", "*", "*.rb"))
+ ).each do |file|
+ require file
+ end
end