lib/rambling/trie/configuration.rb in rambling-trie-opal-2.1.1 vs lib/rambling/trie/configuration.rb in rambling-trie-opal-2.1.1.1
- old
+ new
@@ -1,12 +1,14 @@
# frozen_string_literal: true
-# %w(properties provider_collection).each do |file|
-# require File.join('rambling', 'trie', 'configuration', file)
-# end
-
-require 'rambling/trie/configuration/properties'
-require 'rambling/trie/configuration/provider_collection'
+if RUBY_ENGINE == 'opal'
+ require 'rambling/trie/configuration/properties'
+ require 'rambling/trie/configuration/provider_collection'
+else
+ %w(properties provider_collection).each do |file|
+ require File.join('rambling', 'trie', 'configuration', file)
+ end
+end
module Rambling
module Trie
# Namespace for configuration classes.
module Configuration