Top Level Namespace

Extended by:
IO::Writable

Defined Under Namespace

Modules: Comparable, Enumerable, Errno, JS, Kernel, Marshal, Math, Opal, __JS__ Classes: ArgumentError, Array, BasicObject, Boolean, Class, Complex, Dir, Encoding, Enumerator, Exception, File, Float, FloatDomainError, GC, Hash, IO, IOError, IndexError, Integer, Interrupt, KeyError, LoadError, LocalJumpError, MatchData, Method, Module, NameError, NilClass, NoMemoryError, NoMethodError, NotImplementedError, Number, Numeric, Object, Proc, Process, Random, Range, RangeError, Rational, Regexp, RegexpError, RuntimeError, ScriptError, SecurityError, Signal, SignalException, StandardError, StopIteration, String, Struct, SyntaxError, SystemCallError, SystemExit, Time, TypeError, UnboundMethod, UncaughtThrowError, ZeroDivisionError

Constant Summary

STDERR =
$stderr = IO.new
STDIN =
$stdin  = IO.new
STDOUT =
$stdout = IO.new
NIL =
nil
Fixnum =
Number
Symbol =
String
TrueClass =
Boolean
FalseClass =
Boolean
TRUE =
true
FALSE =
false
RUBY_PLATFORM =
'opal'
RUBY_ENGINE =
'opal'
RUBY_VERSION =
'2.4.0'
RUBY_ENGINE_VERSION =
'0.11.3'
RUBY_RELEASE_DATE =
'2018-08-28'
RUBY_PATCHLEVEL =
0
RUBY_REVISION =
0
'opal - Copyright (C) 2013-2015 Adam Beynon'
RUBY_DESCRIPTION =
"opal #{RUBY_ENGINE_VERSION} (#{RUBY_RELEASE_DATE} revision #{RUBY_REVISION})"
ARGV =
[]
ARGF =
Object.new
ENV =
{}

Class Method Summary collapse

Methods included from IO::Writable

<<, print, puts

Class Method Details

.include(mod) ⇒ Object



5
6
7
# File 'opal/opal/corelib/main.rb', line 5

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

.privateObject



192
193
194
# File 'opal/opal/corelib/unsupported.rb', line 192

def self.private(*)
  #stub
end

.publicObject



188
189
190
# File 'opal/opal/corelib/unsupported.rb', line 188

def self.public(*)
  # stub
end

.to_sObject



1
2
3
# File 'opal/opal/corelib/main.rb', line 1

def self.to_s
  'main'
end