Sha256: 117fdb7af0b8c1642859e35713a278f05fe11725c23d81f705018d1c605e0f53

Contents?: true

Size: 329 Bytes

Versions: 6

Compression:

Stored size: 329 Bytes

Contents

# backtick_javascript: true

class << self
  def to_s
    'main'
  end

  def include(mod)
    ::Object.include mod
  end

  def autoload(*args)
    `Opal.Object.$autoload.apply(Opal.Object, args)`
  end

  # Compiler overrides this method
  def using(mod)
    ::Kernel.raise 'main.using is permitted only at toplevel'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 opal/corelib/main.rb
opal-1.8.2 opal/corelib/main.rb
opal-1.8.1 opal/corelib/main.rb
opal-1.8.0 opal/corelib/main.rb
opal-1.8.0.beta1 opal/corelib/main.rb
opal-1.8.0.alpha1 opal/corelib/main.rb