Class: Cejo::Services::Folders

Inherits:
Object
  • Object
show all
Defined in:
lib/cejo/services/folders.rb

Overview

System Folders

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFolders

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_configObject (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

#downloadsObject (readonly)

Returns the value of attribute downloads.



9
10
11
# File 'lib/cejo/services/folders.rb', line 9

def downloads
  @downloads
end

#localObject (readonly)

Returns the value of attribute local.



9
10
11
# File 'lib/cejo/services/folders.rb', line 9

def local
  @local
end

#picturesObject (readonly)

Returns the value of attribute pictures.



9
10
11
# File 'lib/cejo/services/folders.rb', line 9

def pictures
  @pictures
end