Skip to content

Commit

Permalink
Add core constants/gvars to corelib/variables.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Jan 7, 2014
1 parent 72cf7f1 commit f753d31
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
24 changes: 24 additions & 0 deletions opal/corelib/variables.rb
@@ -0,0 +1,24 @@
# regexp matches
$& = $~ = $` = $' = nil

# stub library path
$: = []
$" = []

# split lines
$/ = "\n"
$, = nil

ARGV = []
ARGF = Object.new
ENV = {}

$VERBOSE = false
$DEBUG = false
$SAFE = 0

RUBY_PLATFORM = 'opal'
RUBY_ENGINE = 'opal'
RUBY_VERSION = '2.0.0'
RUBY_ENGINE_VERSION = '0.6.0'
RUBY_RELEASE_DATE = '2013-11-20'
26 changes: 1 addition & 25 deletions opal/opal.rb
Expand Up @@ -27,28 +27,4 @@
require 'corelib/struct'
require 'corelib/io'
require 'corelib/main'

# regexp matches
$& = $~ = $` = $' = nil

# stub library path
$: = []
$" = []

# split lines
$/ = "\n"
$, = nil

ARGV = []
ARGF = Object.new
ENV = {}

$VERBOSE = false
$DEBUG = false
$SAFE = 0

RUBY_PLATFORM = 'opal'
RUBY_ENGINE = 'opal'
RUBY_VERSION = '2.0.0'
RUBY_ENGINE_VERSION = '0.6.0'
RUBY_RELEASE_DATE = '2013-11-20'
require 'corelib/variables'

0 comments on commit f753d31

Please sign in to comment.