Module: XcodeSnippets

Defined in:
lib/xcode_snippets.rb,
lib/xcode_snippets/main.rb,
lib/xcode_snippets/bundle.rb,
lib/xcode_snippets/snippet.rb,
lib/xcode_snippets/version.rb,
lib/xcode_snippets/manifest.rb,
lib/xcode_snippets/migrator.rb,
lib/xcode_snippets/snippet_manager.rb

Defined Under Namespace

Modules: Version Classes: Bundle, Main, Manifest, Migrator, Snippet, SnippetManager

Constant Summary collapse

DEFAULT_INSTALLATION_PATH =
File.expand_path("~/Library/Developer/Xcode/UserData/ManagedCodeSnippets")
DEFAULT_XCODE_SNIPPETS_PATH =
File.expand_path("~/Library/Developer/Xcode/UserData/CodeSnippets")

Class Method Summary collapse

Class Method Details

.installation_pathObject



11
12
13
# File 'lib/xcode_snippets.rb', line 11

def self.installation_path
  @installation_path || DEFAULT_INSTALLATION_PATH
end

.installation_path=(path) ⇒ Object



15
16
17
# File 'lib/xcode_snippets.rb', line 15

def self.installation_path=(path)
  @installation_path = path
end

.xcode_snippets_pathObject



19
20
21
# File 'lib/xcode_snippets.rb', line 19

def self.xcode_snippets_path
  @xcode_snippets_path || DEFAULT_XCODE_SNIPPETS_PATH
end

.xcode_snippets_path=(path) ⇒ Object



23
24
25
# File 'lib/xcode_snippets.rb', line 23

def self.xcode_snippets_path=(path)
  @xcode_snippets_path = path
end