module Pathtree::ObjectRefinements
Public Instance Methods
directory_path(name:)
click to toggle source
# File lib/pathtree.rb, line 33 def directory_path(name:) path(name: name, proc_for_nil: -> { _1 }) end
file_path(name:)
click to toggle source
Use Pathtree::StringRefinements#split_extension
by default
# File lib/pathtree.rb, line 29 def file_path(name:) path(name: name, proc_for_nil: -> { _1.split_extension }) end