Sha256: 101962b08636458ed99270534a2ae53b49c6d28a3214954671b14d4ec5f000c4

Contents?: true

Size: 208 Bytes

Versions: 7

Compression:

Stored size: 208 Bytes

Contents

ComplexStruct = Struct.new(:args)

def Complex(*args)
  ComplexStruct.new(args)
end

# In Opal 0.9
unless Object.const_defined?(:Math) && Object.const_defined?(:PI)
  module Math
    PI = `Math.PI`
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
opal-rspec-0.6.2 spec/rspec/expectations/fixes/missing_constants.rb
opal-rspec-0.6.1 spec/rspec/expectations/fixes/missing_constants.rb
opal-rspec-0.6.0 spec/rspec/expectations/fixes/missing_constants.rb
opal-rspec-0.6.0.beta1 spec/rspec/expectations/fixes/missing_constants.rb
opal-connect-rspec-0.5.0 spec/rspec/expectations/fixes/missing_constants.rb
opal-rspec-0.5.0 spec/rspec/expectations/fixes/missing_constants.rb
opal-rspec-0.5.0.beta3 spec/rspec/expectations/fixes/missing_constants.rb