Module: Exportation
- Defined in:
- lib/exportation.rb
Defined Under Namespace
Classes: Crypter, Export, Keychain
Class Method Summary
collapse
Class Method Details
.applescript_path ⇒ Object
11
12
13
|
# File 'lib/exportation.rb', line 11
def self.applescript_path
File.join(gem_path, 'applescript', 'exportation.scpt')
end
|
.gem_path ⇒ Object
3
4
5
6
7
8
9
|
# File 'lib/exportation.rb', line 3
def self.gem_path
if Gem::Specification::find_all_by_name('exportation').any?
return Gem::Specification.find_by_name('exportation').gem_dir
else
return './'
end
end
|
.is_empty?(str) ⇒ Boolean
15
16
17
|
# File 'lib/exportation.rb', line 15
def self.is_empty?(str)
str.nil? || str.length == 0
end
|