Sha256: f7af7d3fde12c29bfc0d6092ddd8f33c23e3b0f1f2feda57b1e7432bbc621f20

Contents?: true

Size: 285 Bytes

Versions: 7

Compression:

Stored size: 285 Bytes

Contents

module Oj
  
  def self.mimic_loaded()
    gems_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__))))
    Dir.foreach(gems_dir) do |gem|
      next unless gem.start_with?('json-')
      $LOADED_FEATURES << File.join(gems_dir, gem, 'lib', 'json.rb')
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
oj-1.4.3 lib/oj/mimic.rb
oj-1.4.2 lib/oj/mimic.rb
oj-1.4.1 lib/oj/mimic.rb
oj-1.4.0 lib/oj/mimic.rb
oj-1.3.7 lib/oj/mimic.rb
oj-1.3.6 lib/oj/mimic.rb
oj-1.3.5 lib/oj/mimic.rb