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
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.
'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.
'rbx'.freeze
- VERSION =
Defines the version
'0.6.1'.freeze
Class Method Summary collapse
-
.jruby? ⇒ TrueClass, FalseClass
private
Checks if the current VM is JRuby.
-
.rubinius? ⇒ TrueClass, FalseClass
private
Checks if the current VM is Rubinius.
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
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
32 33 34 |
# File 'lib/lotus/utils.rb', line 32 def self.rubinius? RUBY_ENGINE == LOTUS_RUBINIUS end |