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/manifest.rb,
lib/xcode_snippets/snippet_manager.rb

Defined Under Namespace

Classes: Bundle, Main, Manifest, 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



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

def self.installation_path
  @installation_path || DEFAULT_INSTALLATION_PATH
end

.installation_path=(path) ⇒ Object



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

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

.xcode_snippets_pathObject



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

def self.xcode_snippets_path
  @xcode_snippets_path || DEFAULT_XCODE_SNIPPETS_PATH
end

.xcode_snippets_path=(path) ⇒ Object



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

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