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