Sha256: d0a08b266d3d0152f6e189f0d283489d3d713c9b84d8118b0e824015cf7b437d

Contents?: true

Size: 325 Bytes

Versions: 2

Compression:

Stored size: 325 Bytes

Contents

module ::Opal
  module RSpec
    def self.load_namespaced(file, mod)
      if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.1")
        load file, mod
      else
        str = ""
        str += "module ::#{mod.name};"
        str += File.read(file)
        str += ";end"
        eval(str)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opal-rspec-1.1.0.alpha3 lib/opal/rspec/util.rb
opal-rspec-1.1.0.alpha2 lib/opal/rspec/util.rb