Module: Exportation

Defined in:
lib/exportation.rb

Defined Under Namespace

Classes: Crypter, Export, Keychain

Class Method Summary collapse

Class Method Details

.applescript_pathObject



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

def self.applescript_path
  File.join(gem_path, 'applescript', 'exportation.scpt')
end

.gem_pathObject



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

Returns:

  • (Boolean)


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

def self.is_empty?(str)
  str.nil? || str.length == 0
end