Sha256: c92851cd447ef2a4cb85add83856703c3419be63d50f0148aedd328fea03587a
Contents?: true
Size: 228 Bytes
Versions: 10
Compression:
Stored size: 228 Bytes
Contents
# encoding: utf-8 module Nanoc3::StringExtensions # Transforms string into an actual identifier def cleaned_identifier "/#{self}/".gsub(/^\/+|\/+$/, '/') end end class String include Nanoc3::StringExtensions end
Version data entries
10 entries across 10 versions & 1 rubygems