Class: Configural::MacPlatform

Inherits:
Platform
  • Object
show all
Defined in:
lib/configural/platform.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Platform

get_platform, inherited, #initialize

Constructor Details

This class inherits a constructor from Configural::Platform

Class Method Details

.match?(app) ⇒ Boolean

Returns:

  • (Boolean)


93
94
95
# File 'lib/configural/platform.rb', line 93

def self.match?( app )
  true if /darwin/ =~ RbConfig::CONFIG['host_os']
end

Instance Method Details

#cache_pathObject



97
98
99
# File 'lib/configural/platform.rb', line 97

def cache_path
  File.join( ENV['HOME'], 'Library', 'Caches', @app.name )
end

#config_pathObject



101
102
103
# File 'lib/configural/platform.rb', line 101

def config_path
  File.join( ENV['HOME'], 'Library', 'Preferences', @app.name )
end

#data_pathObject



105
106
107
108
# File 'lib/configural/platform.rb', line 105

def data_path
  File.join( ENV['HOME'], 'Library',
             'Application Support', @app.name )
end