Class: Configural::MacPlatform
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Platform
get_platform, inherited, #initialize
Class Method Details
.match?(app) ⇒ 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_path ⇒ Object
97
98
99
|
# File 'lib/configural/platform.rb', line 97
def cache_path
File.join( ENV['HOME'], 'Library', 'Caches', @app.name )
end
|
#config_path ⇒ Object
101
102
103
|
# File 'lib/configural/platform.rb', line 101
def config_path
File.join( ENV['HOME'], 'Library', 'Preferences', @app.name )
end
|
#data_path ⇒ Object
105
106
107
108
|
# File 'lib/configural/platform.rb', line 105
def data_path
File.join( ENV['HOME'], 'Library',
'Application Support', @app.name )
end
|