Module: Rubinius

Defined in:
lib/melbourne.rb,
lib/melbourne.rb,
lib/compiler/locals.rb,
lib/compiler/ast/data.rb,
lib/compiler/ast/file.rb,
lib/compiler/ast/node.rb,
lib/compiler/ast/self.rb,
lib/compiler/ast/sends.rb,
lib/compiler/ast/values.rb,
lib/melbourne/processor.rb,
lib/compiler/ast/grapher.rb,
lib/compiler/ast/encoding.rb,
lib/compiler/ast/literals.rb,
lib/compiler/ast/constants.rb,
lib/compiler/ast/operators.rb,
lib/compiler/ast/variables.rb,
lib/compiler/ast/exceptions.rb,
lib/compiler/ast/transforms.rb,
lib/compiler/ast/definitions.rb,
lib/compiler/ast/control_flow.rb

Defined Under Namespace

Modules: AST Classes: Compiler, Melbourne, Melbourne19

Class Method Summary collapse

Class Method Details

.ruby18?true, false

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Test if running under 1.8 mode

Returns:

  • (true)

    if ruby version is lower than 1.9.0

  • (false)

    otherwise



16
17
18
# File 'lib/melbourne.rb', line 16

def self.ruby18?
  RUBY_VERSION < '1.9.0'
end