lib/garcon/core_ext/pathname.rb
# Recursively expand a path handle.
#
# @return [Array<String>]
#   An array of path segments, suitable for .join
#
# @api public
Recursively expand a path handle.
Recursively expand a path handle .
def expand_pathseg(handle)
      return handle unless handle.is_a?(Symbol)
      pathsegs = ROOT_PATHS[handle] or raise ArgumentError,
        "Don't know how to expand path reference '#{handle.inspect}'."
      pathsegs.map { |ps| expand_pathseg(ps) }.flatten
    end
def expand_pathseg ( handle ) return handle unless handle . is_a? ( Symbol ) pathsegs = ROOT_PATHS [ handle ] or raise ArgumentError , "Don't know how to expand path reference '#{handle.inspect}'." pathsegs . map { | ps | expand_pathseg ( ps ) } . flatten end
Recursively expand a path handle.
Recursively expand a path handle .
An array of path segments, suitable for .join
An array of path segments suitable for . join
Array<String>
handle
<not_specific>
api
None