module Exportation

Public Class Methods

applescript_path() click to toggle source
# File lib/exportation.rb, line 11
def self.applescript_path
  File.join(gem_path, 'applescript', 'exportation.scpt')
end
gem_path() click to toggle source
# 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) click to toggle source
# File lib/exportation.rb, line 15
def self.is_empty?(str)
  str.nil? || str.length == 0
end