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)
-
+ (String) install_directory
Returns the installation directory.
-
+ (String) share_directory
Returns the path to the share/ directory in the gem.
Class Method Details
+ (String) install_directory
Returns the installation directory
7 8 9 |
# File 'lib/gmail/core.rb', line 7 def self.install_directory @install_directory ||= File.(File.dirname(__FILE__)) end |
+ (String) share_directory
Returns the path to the share/ directory in the gem
13 14 15 |
# File 'lib/gmail/core.rb', line 13 def self.share_directory @share_directory ||= File.(File.join(GMail::Utils.install_directory, '/../../share/')) end |