All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.coercible-1.0.0.lib.coercible.coercer.false_class.rb Maven / Gradle / Ivy

The newest version!
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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy