Module: Lotus::Utils

Defined in:
lib/lotus/utils.rb,
lib/lotus/utils/io.rb,
lib/lotus/utils/hash.rb,
lib/lotus/utils/class.rb,
lib/lotus/utils/escape.rb,
lib/lotus/utils/kernel.rb,
lib/lotus/utils/string.rb,
lib/lotus/utils/version.rb,
lib/lotus/utils/callbacks.rb,
lib/lotus/utils/inflector.rb,
lib/lotus/utils/attributes.rb,
lib/lotus/utils/duplicable.rb,
lib/lotus/utils/load_paths.rb,
lib/lotus/utils/deprecation.rb,
lib/lotus/utils/path_prefix.rb,
lib/lotus/utils/basic_object.rb,
lib/lotus/utils/class_attribute.rb

Overview

Ruby core extentions and Lotus utilities

Since:

  • 0.1.0

Defined Under Namespace

Modules: Callbacks, ClassAttribute, Duplicable, Escape, Inflector, Kernel Classes: Attributes, BasicObject, Class, Deprecation, Hash, IO, LoadPaths, PathPrefix, String

Constant Summary collapse

LOTUS_JRUBY =

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

Since:

  • 0.3.1

'java'.freeze
LOTUS_RUBINIUS =

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

Since:

  • 0.3.1

'rbx'.freeze
VERSION =

Defines the version

Since:

  • 0.1.0

'0.6.1'.freeze

Class Method Summary collapse

Class Method Details

.jruby?TrueClass, FalseClass

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.

Checks if the current VM is JRuby

Returns:

  • (TrueClass, FalseClass)

    return if the VM is JRuby or not

Since:

  • 0.3.1



22
23
24
# File 'lib/lotus/utils.rb', line 22

def self.jruby?
  RUBY_PLATFORM == LOTUS_JRUBY
end

.rubinius?TrueClass, FalseClass

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.

Checks if the current VM is Rubinius

Returns:

  • (TrueClass, FalseClass)

    return if the VM is Rubinius or not

Since:

  • 0.3.1



32
33
34
# File 'lib/lotus/utils.rb', line 32

def self.rubinius?
  RUBY_ENGINE == LOTUS_RUBINIUS
end