Class: Virtus::Coercion::TrueClass
- Inherits:
-
Object
- Object
- Virtus::Coercion
- Object
- Virtus::Coercion::TrueClass
- Defined in:
- lib/virtus/coercion/true_class.rb
Overview
Coerce true 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/true_class.rb', line 18 def self.to_string(value) value.to_s end |