Sha256: 83a8c6dc68549e06137b6c23fb93028c519b62ae51c93b80cc48a683c3132b71

Contents?: true

Size: 476 Bytes

Versions: 15

Compression:

Stored size: 476 Bytes

Contents

module Coercible
  class Coercer

    # Coerce false values
    class FalseClass < Object
      primitive ::FalseClass

      # Coerce given value to String
      #
      # @example
      #   coercer[FalseClass].to_string(false)  # => "false"
      #
      # @param [FalseClass] value
      #
      # @return [String]
      #
      # @api public
      def to_string(value)
        value.to_s
      end

    end # class FalseClass

  end # class Coercer
end # module Coercible

Version data entries

15 entries across 13 versions & 5 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/coercible-1.0.0/lib/coercible/coercer/false_class.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/coercible-1.0.0/lib/coercible/coercer/false_class.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/coercible-1.0.0/lib/coercible/coercer/false_class.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/coercible-1.0.0/lib/coercible/coercer/false_class.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/coercible-1.0.0/lib/coercible/coercer/false_class.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/coercer/false_class.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/coercible-1.0.0/lib/coercible/coercer/false_class.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/coercer/false_class.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/coercible-1.0.0/lib/coercible/coercer/false_class.rb
coercible-1.0.0 lib/coercible/coercer/false_class.rb
motion_coercible-0.2.0 lib/project/coercer/false_class.rb
coercible-0.2.0 lib/coercible/coercer/false_class.rb
coercible-0.1.0 lib/coercible/coercer/false_class.rb
coercible-0.0.2 lib/coercible/coercer/false_class.rb
coercible-0.0.1 lib/coercible/coercer/false_class.rb