Module: Coercible
- Defined in:
- lib/coercible.rb,
lib/support/options.rb,
lib/coercible/coercer.rb,
lib/coercible/version.rb,
lib/support/type_lookup.rb,
lib/coercible/coercer/date.rb,
lib/coercible/coercer/hash.rb,
lib/coercible/coercer/time.rb,
lib/coercible/coercer/array.rb,
lib/coercible/coercer/float.rb,
lib/coercible/configuration.rb,
lib/coercible/coercer/object.rb,
lib/coercible/coercer/string.rb,
lib/coercible/coercer/symbol.rb,
lib/coercible/coercer/decimal.rb,
lib/coercible/coercer/integer.rb,
lib/coercible/coercer/numeric.rb,
lib/coercible/coercer/date_time.rb,
lib/coercible/coercer/true_class.rb,
lib/coercible/coercer/false_class.rb,
lib/coercible/coercer/configurable.rb,
lib/coercible/coercer/time_coercions.rb
Defined Under Namespace
Modules: Options, TypeLookup Classes: Coercer, Configuration
Constant Summary collapse
- EXTRA_CONST_ARGS =
(RUBY_VERSION < '1.9' ? [] : [ false ]).freeze
- UnsupportedCoercion =
Class.new(StandardError)
- VERSION =
"1.0.0"
Class Method Summary collapse
-
.rbx? ⇒ true, false
private
Test for rubinius platform.
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
15 16 17 |
# File 'lib/coercible.rb', line 15 def self.rbx? @is_rbx ||= defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx' end |