Class: Cejo::Services::Folders
- Inherits:
-
Object
- Object
- Cejo::Services::Folders
- Defined in:
- lib/cejo/services/folders.rb
Overview
System Folders
Instance Attribute Summary collapse
-
#cejo_config ⇒ Object
readonly
Returns the value of attribute cejo_config.
-
#downloads ⇒ Object
readonly
Returns the value of attribute downloads.
-
#local ⇒ Object
readonly
Returns the value of attribute local.
-
#pictures ⇒ Object
readonly
Returns the value of attribute pictures.
Instance Method Summary collapse
-
#initialize ⇒ Folders
constructor
A new instance of Folders.
Constructor Details
#initialize ⇒ Folders
Returns a new instance of Folders.
11 12 13 14 15 16 17 18 |
# File 'lib/cejo/services/folders.rb', line 11 def initialize home = Dir.home xdg_config_home = Pathname.new(File.join(home, '.config')) @cejo_config = Pathname.new(File.join(xdg_config_home, 'cejo')) @downloads = Pathname.new(File.join(home, 'Downloads')) @pictures = Pathname.new(File.join(home, 'Pictures')) @local = Pathname.new(File.join(home, '.local')) end |
Instance Attribute Details
#cejo_config ⇒ Object (readonly)
Returns the value of attribute cejo_config.
9 10 11 |
# File 'lib/cejo/services/folders.rb', line 9 def cejo_config @cejo_config end |
#downloads ⇒ Object (readonly)
Returns the value of attribute downloads.
9 10 11 |
# File 'lib/cejo/services/folders.rb', line 9 def downloads @downloads end |
#local ⇒ Object (readonly)
Returns the value of attribute local.
9 10 11 |
# File 'lib/cejo/services/folders.rb', line 9 def local @local end |
#pictures ⇒ Object (readonly)
Returns the value of attribute pictures.
9 10 11 |
# File 'lib/cejo/services/folders.rb', line 9 def pictures @pictures end |