Module: Coercible

Defined in:
lib/project/coercer.rb,
lib/project/version.rb,
lib/project/coercible.rb,
lib/project/coercer/date.rb,
lib/project/coercer/hash.rb,
lib/project/coercer/time.rb,
lib/project/coercer/array.rb,
lib/project/coercer/float.rb,
lib/project/configuration.rb,
lib/project/coercer/object.rb,
lib/project/coercer/string.rb,
lib/project/coercer/symbol.rb,
lib/project/coercer/decimal.rb,
lib/project/coercer/integer.rb,
lib/project/coercer/numeric.rb,
lib/project/support/options.rb,
lib/project/coercer/date_time.rb,
lib/project/coercer/true_class.rb,
lib/project/coercer/false_class.rb,
lib/project/support/type_lookup.rb,
lib/project/coercer/configurable.rb,
lib/project/coercer/time_coercions.rb,
lib/project/support/descendants_tracker.rb

Defined Under Namespace

Modules: DescendantsTracker, Options, TypeLookup Classes: Coercer, Configuration

Constant Summary collapse

VERSION =
"0.2.0.2"
EXTRA_CONST_ARGS =
(RUBY_VERSION < '1.9' ? [] : [ false ]).freeze
UnsupportedCoercion =
Class.new(StandardError)

Class Method Summary collapse

Class Method Details

.rbx?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 for rubinius platform

Returns:

  • (true)

    if running under rubinius

  • (false)

    otherwise



20
21
22
# File 'lib/project/coercible.rb', line 20

def self.rbx?
  @is_rbx ||= defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
end