Sha256: 1fbfe164e18f26ea6f962e11c55fcb107eab8b06563a5857c99cb5ac89118978
Contents?: true
Size: 465 Bytes
Versions: 18
Compression:
Stored size: 465 Bytes
Contents
module Virtus class Coercion # Coerce Symbol values class Symbol < Object primitive ::Symbol # Coerce given value to String # # @example # Virtus::Coercion::Symbol.to_string(:name) # => "name" # # @param [Symbol] value # # @return [String] # # @api public def self.to_string(value) value.to_s end end # class Symbol end # class Coercion end # module Virtus
Version data entries
18 entries across 18 versions & 2 rubygems