Sha256: 3d7475214ed13694490049de52ac5392eea027c4a7d1da86b7b8bb5745773f80

Contents?: true

Size: 1.2 KB

Versions: 10

Compression:

Stored size: 1.2 KB

Contents

module Coercible
  EXTRA_CONST_ARGS = (RUBY_VERSION < '1.9' ? [] : [ false ]).freeze

  UnsupportedCoercion = Class.new(StandardError)

  # Test for rubinius platform
  #
  # @return [true]
  #   if running under rubinius
  #
  # @return [false]
  #   otherwise
  #
  # @api private
  def self.rbx?
    @is_rbx ||= defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
  end
end

require 'date'
require 'time'
require 'bigdecimal'
require 'bigdecimal/util'
require 'set'

require 'descendants_tracker'
require 'support/options'
require 'support/type_lookup'

require 'coercible/version'
require 'coercible/configuration'

require 'coercible/coercer'
require 'coercible/coercer/configurable'
require 'coercible/coercer/object'

require 'coercible/coercer/numeric'
require 'coercible/coercer/float'
require 'coercible/coercer/integer'
require 'coercible/coercer/decimal'

require 'coercible/coercer/string'
require 'coercible/coercer/symbol'

require 'coercible/coercer/time_coercions'
require 'coercible/coercer/date'
require 'coercible/coercer/date_time'
require 'coercible/coercer/time'

require 'coercible/coercer/false_class'
require 'coercible/coercer/true_class'

require 'coercible/coercer/array'
require 'coercible/coercer/hash'

Version data entries

10 entries across 8 versions & 4 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/coercible-1.0.0/lib/coercible.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/coercible-1.0.0/lib/coercible.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/coercible-1.0.0/lib/coercible.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/coercible-1.0.0/lib/coercible.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/coercible-1.0.0/lib/coercible.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/coercible-1.0.0/lib/coercible.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/coercible-1.0.0/lib/coercible.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/coercible-1.0.0/lib/coercible.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/coercible-1.0.0/lib/coercible.rb
coercible-1.0.0 lib/coercible.rb