Class: Virtus::Coercion::FalseClass
- Inherits:
-
Object
- Object
- Virtus::Coercion
- Object
- Virtus::Coercion::FalseClass
- Defined in:
- lib/virtus/coercion/false_class.rb
Overview
Coerce false values
Constant Summary
Constants inherited from Object
Object::COERCION_METHOD_REGEXP
Constants included from TypeLookup
Class Method Summary collapse
-
.to_string(value) ⇒ String
Coerce given value to String.
Methods inherited from Object
Methods inherited from Virtus::Coercion
Methods included from TypeLookup
#determine_type, extended, #primitive
Methods included from Options
#accept_options, #accepted_options, #options
Class Method Details
.to_string(value) ⇒ String
Coerce given value to String
18 19 20 |
# File 'lib/virtus/coercion/false_class.rb', line 18 def self.to_string(value) value.to_s end |