Sha256: f0a34a8ff1640bbee37d7385edad6f689df2ff53809c329c2c9fa1165d2ab6a0
Contents?: true
Size: 729 Bytes
Versions: 3
Compression:
Stored size: 729 Bytes
Contents
# # Copyright (c) 2018 Patrick Thomas. All rights reserved. # # noinspection RubyResolve require 'facets/string/pathize' module Cayuga module Tools # Cayuga Tools String module String def stringify self end def symbolize to_sym end def classify symbolize.classify end def filenamify(extension = nil) # noinspection RubyResolve result = pathize.tr('/', '#') unless extension.nil? || extension.empty? result += extension[0] == '.' ? '' : '.' result += extension.stringify end result end end end end String.include(Cayuga::Tools::String)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cayuga-0.0.13 | lib/cayuga/tools/string.rb |
cayuga-0.0.12 | lib/cayuga/tools/string.rb |
cayuga-0.0.11 | lib/cayuga/tools/string.rb |