Top Level Namespace

Extended by:
IO::Writable

Defined Under Namespace

Modules: Comparable, Enumerable, Errno, Kernel, Opal, __JS__ Classes: ArgumentError, Array, BasicObject, Boolean, Class, Complex, Enumerator, Exception, Float, FloatDomainError, Hash, IO, IOError, IndexError, Integer, KeyError, LoadError, LocalJumpError, MatchData, Method, Module, NameError, NilClass, NoMethodError, NotImplementedError, Numeric, Proc, Range, RangeError, Rational, Regexp, RuntimeError, ScriptError, StandardError, StopIteration, String, Struct, SyntaxError, SystemCallError, SystemExit, Time, TypeError, UnboundMethod

Constant Summary

STDERR =
$stderr = IO.new
STDIN =
$stdin  = IO.new
STDOUT =
$stdout = IO.new
Symbol =
String
TrueClass =
Boolean
FalseClass =
Boolean
TRUE =
true
FALSE =
false
Fixnum =
Numeric
NIL =
nil
ARGV =
[]
ARGF =
Object.new
ENV =
{}
RUBY_PLATFORM =
'opal'
RUBY_ENGINE =
'opal'
RUBY_VERSION =
'2.1.1'
RUBY_ENGINE_VERSION =
'0.6.1'
RUBY_RELEASE_DATE =
'2014-04-15'

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

.to_sObject



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

def self.to_s
  'main'
end

.write(string) ⇒ Object



45
46
47
48
# File 'opal/opal/corelib/io.rb', line 45

def $stdout.write(string)
  `console.log(#{string.to_s});`
  nil
end