Sha256: 4f993ff3df8a8b3402a7502447e588e5c6bae36a84152424e8de5d8aef8f5d61

Contents?: true

Size: 461 Bytes

Versions: 6

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true

module SublimeTextKit
  module Metadata
    # Processes workspace metadata.
    class Workspace < Base
      def file_extension
        "sublime-workspace"
      end

      def to_h
        {
          expanded_folders: [project_dir],
          select_project: {
            selected_items: [
              [name, File.join(metadata_dir, "#{name}.sublime-project")]
            ]
          }
        }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sublime_text_kit-10.0.2 lib/sublime_text_kit/metadata/workspace_metadata.rb
sublime_text_kit-10.0.1 lib/sublime_text_kit/metadata/workspace_metadata.rb
sublime_text_kit-10.0.0 lib/sublime_text_kit/metadata/workspace_metadata.rb
sublime_text_kit-9.6.0 lib/sublime_text_kit/metadata/workspace_metadata.rb
sublime_text_kit-9.5.0 lib/sublime_text_kit/metadata/workspace_metadata.rb
sublime_text_kit-9.4.0 lib/sublime_text_kit/metadata/workspace_metadata.rb