Sha256: f5a356ee309e5c7c8c74dde0d8f9d01e181ff6c3b190d40101d53fb81a27883d
Contents?: true
Size: 450 Bytes
Versions: 5
Compression:
Stored size: 450 Bytes
Contents
# frozen_string_literal: true require "refinements/pathname" module SublimeTextKit module Configuration # Models the configuration. Model = Struct.new :project_roots, :metadata_dir, :snippets_format, :session_path, :user_dir do using Refinements::Pathname def project_dirs Array(project_roots).map { |path| Pathname(path).expand_path } .flat_map(&:directories) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems