Class: Parameters::Types::String Private
- Defined in:
- lib/parameters/types/string.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
-
.coerce(value) ⇒ ::String
private
Coerces a value into a String.
Methods inherited from Object
Methods inherited from Type
#<, #<=, #==, ===, #===, #coerce, #to_ruby, to_ruby
Class Method Details
.coerce(value) ⇒ ::String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Coerces a value into a String.
16 17 18 |
# File 'lib/parameters/types/string.rb', line 16 def self.coerce(value) value.to_s end |