class Aliyun::Log::Record::TypeCasting::StringType
Public Instance Methods
cast(value)
click to toggle source
# File lib/aliyun/log/record/type_casting.rb, line 59 def cast(value) if value.nil? '' elsif value.is_a? String value.dup else value.to_s end end