Sha256: ebb1dca2b43c01acbf963c6454e1f0a6fa9589e38fef268b00bbb4a214c8cd5a
Contents?: true
Size: 279 Bytes
Versions: 33
Compression:
Stored size: 279 Bytes
Contents
# frozen_string_literal: true require 'pathname' class Pathname # @param suffix [String] # @return [Pathname] def basename_sub(suffix = '') new_basename = basename(suffix) new_basename = yield(new_basename) if block_given? parent.join(new_basename) end end
Version data entries
33 entries across 33 versions & 2 rubygems