Class: SublimeTextKit::Configuration::Model

Inherits:
Struct
  • Object
show all
Defined in:
lib/sublime_text_kit/configuration/model.rb

Overview

Models the settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#metadata_dirObject

Returns the value of attribute metadata_dir

Returns:

  • (Object)

    the current value of metadata_dir



8
9
10
# File 'lib/sublime_text_kit/configuration/model.rb', line 8

def 
  @metadata_dir
end

#project_rootsObject

Returns the value of attribute project_roots

Returns:

  • (Object)

    the current value of project_roots



8
9
10
# File 'lib/sublime_text_kit/configuration/model.rb', line 8

def project_roots
  @project_roots
end

#session_pathObject

Returns the value of attribute session_path

Returns:

  • (Object)

    the current value of session_path



8
9
10
# File 'lib/sublime_text_kit/configuration/model.rb', line 8

def session_path
  @session_path
end

#snippets_formatObject

Returns the value of attribute snippets_format

Returns:

  • (Object)

    the current value of snippets_format



8
9
10
# File 'lib/sublime_text_kit/configuration/model.rb', line 8

def snippets_format
  @snippets_format
end

#user_dirObject

Returns the value of attribute user_dir

Returns:

  • (Object)

    the current value of user_dir



8
9
10
# File 'lib/sublime_text_kit/configuration/model.rb', line 8

def user_dir
  @user_dir
end

Instance Method Details

#project_dirsObject



11
12
13
14
# File 'lib/sublime_text_kit/configuration/model.rb', line 11

def project_dirs
  Array(project_roots).map { |path| Pathname(path).expand_path }
                      .flat_map(&:directories)
end