Sha256: 4230a5871735e0a0d40c95a24c387852628623f1421ab1ab4862727f0c5e80dd
Contents?: true
Size: 568 Bytes
Versions: 3
Compression:
Stored size: 568 Bytes
Contents
# # Copyright (c) 2018 Patrick Thomas. All rights reserved. # module Cayuga module Tools # Cayuga Tools Symbol module Symbol def stringify to_s end def symbolize self end def classify klass = Object.const_get(to_s) raise NameError, "wrong class name '#{klass}'" unless klass.is_a?(Class) klass end def filenamify(extension = nil) stringify.filenamify(extension) end end end end Symbol.include(Cayuga::Tools::Symbol)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cayuga-0.0.13 | lib/cayuga/tools/symbol.rb |
cayuga-0.0.12 | lib/cayuga/tools/symbol.rb |
cayuga-0.0.11 | lib/cayuga/tools/symbol.rb |