End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
SyntaxSuggest.record_dir
record_dir(dir)
lib/syntax_suggest/api.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/syntax_suggest/api.rb, line 89
def self.record_dir(dir)
time = Time.now.strftime("%Y-%m-%d-%H-%M-%s-%N")
dir = Pathname(dir)
dir.join(time).tap { |path|
path.mkpath
FileUtils.ln_sf(time, dir.join("last"))
}
end
SyntaxSuggest.record_dir [Private]
Used to generate a unique directory to record search steps for debugging