Class: Shale::Type::String
Overview
Cast value to String
Class Method Summary collapse
- .cast(value) ⇒ String? private
Methods inherited from Value
as_csv, as_hash, as_json, as_toml, as_xml, as_xml_value, as_yaml, of_csv, of_hash, of_json, of_toml, of_xml, of_yaml
Class Method Details
.cast(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.
16 17 18 |
# File 'lib/shale/type/string.rb', line 16 def self.cast(value) value&.to_s end |