Class: CSD::Path
- Inherits:
-
GlobalOpenStruct
- Object
- GlobalOpenStruct
- CSD::Path
- Defined in:
- lib/csd/path.rb
Class Method Summary collapse
- .applications ⇒ Object
- .applications=(path) ⇒ Object
- .gem ⇒ Object
- .root ⇒ Object
- .root=(path) ⇒ Object
- .vendor ⇒ Object
Methods inherited from GlobalOpenStruct
Class Method Details
.applications ⇒ Object
22 23 24 |
# File 'lib/csd/path.rb', line 22 def self.applications @@applications ||= File.(File.join(gem, 'lib', 'csd', 'application')) end |
.applications=(path) ⇒ Object
26 27 28 |
# File 'lib/csd/path.rb', line 26 def self.applications=(path) @@applications = File.(path) end |
.gem ⇒ Object
14 15 16 |
# File 'lib/csd/path.rb', line 14 def self.gem @@gem ||= File.(File.join(File.dirname(__FILE__), '..' ,'..')) end |
.root ⇒ Object
6 7 8 |
# File 'lib/csd/path.rb', line 6 def self.root @@root ||= Dir.pwd end |
.root=(path) ⇒ Object
10 11 12 |
# File 'lib/csd/path.rb', line 10 def self.root=(path) @@root = path end |
.vendor ⇒ Object
18 19 20 |
# File 'lib/csd/path.rb', line 18 def self.vendor @@vendor ||= File.join(gem, 'vendor') end |