Class: RailsTypedSettings::Types::String
- Defined in:
- lib/rails_typed_settings/types/string.rb
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.===(value) ⇒ Object
4 5 6 |
# File 'lib/rails_typed_settings/types/string.rb', line 4 def self.===(value) ::String === value end |
.coerce(value) ⇒ Object
8 9 10 11 |
# File 'lib/rails_typed_settings/types/string.rb', line 8 def self.coerce(value) return nil if value.nil? value.to_s end |