Sha256: fe4946dfad52d513547b3cfe76d44b152fa24ced0bd124355a8f2e52f843b520
Contents?: true
Size: 622 Bytes
Versions: 47
Compression:
Stored size: 622 Bytes
Contents
# -*- coding: utf-8 -*- class Symbol # This method applies String#default! method to the receiver converted to # a string. Of course, symbols are immutable, so in spite of the exclamation # mark in the method name, a new symbol (supplied as argument) is returned, # if the original one is considered "defaulted" (otherwise, original symbol # is returned unchanged). # def default! default_symbol to_s.default!( default_symbol ).to_sym end # Applies String#to_standardized_sym method to the recevier converted to a # string. # def to_standardized_sym to_s.to_standardized_sym end end
Version data entries
47 entries across 47 versions & 1 rubygems