Module: GMail::Utils

Defined in:
lib/gmail/version.rb,
lib/gmail/core.rb

Overview

Just to handle these constants

Constant Summary

VERSION =

Main API version

'0.5.1'
DB_VERSION =

Database version

'3'

Class Method Summary (collapse)

Class Method Details

+ (String) install_directory

Returns the installation directory

Returns:

  • (String)

    path to installation



7
8
9
# File 'lib/gmail/core.rb', line 7

def self.install_directory
  @install_directory ||= File.expand_path(File.dirname(__FILE__))
end

+ (String) share_directory

Returns the path to the share/ directory in the gem

Returns:

  • (String)

    path to share/



13
14
15
# File 'lib/gmail/core.rb', line 13

def self.share_directory
  @share_directory ||= File.expand_path(File.join(GMail::Utils.install_directory, '/../../share/'))
end