Sha256: 18c85f8a1a035f1dfa972d8d36cfe453312d982ee2214bf8f6c42a9fdacf7772
Contents?: true
Size: 302 Bytes
Versions: 2
Compression:
Stored size: 302 Bytes
Contents
# frozen_string_literal: true module Refinements # Provides additional enhancements to the Symbol primitive. module Module refine ::Module do def pseudonym prefix, suffix = object_id, delimiter: "-" set_temporary_name "#{prefix}#{delimiter}#{suffix}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
refinements-12.11.0 | lib/refinements/module.rb |
refinements-12.10.0 | lib/refinements/module.rb |