Class: Alchemy::Custom::Model::ElFinder::Paths::Root

Inherits:
Base
  • Object
show all
Defined in:
lib/alchemy/custom/model/el_finder/paths/root.rb

Instance Attribute Summary

Attributes inherited from Base

#path, #root, #volume

Instance Method Summary collapse

Methods inherited from Base

#absolute?, #basename, #basename_sans_extension, #child_directories, #cleanpath, #directory?, #dirname, #duplicate, #extname, #file?, #fisical_path, #full_fill_paylod, #fullpath, #global_id, #initialize, #is_image?, #mime_type, #mtime, #name, #outside_of_root?, #realpath, #relative?, #relative_to, #rename, #tmb, #to_s, #unique

Constructor Details

This class inherits a constructor from Alchemy::Custom::Model::ElFinder::Paths::Base

Instance Method Details

#children(with_directory = true) ⇒ Object



14
15
16
17
18
19
# File 'lib/alchemy/custom/model/el_finder/paths/root.rb', line 14

def children(with_directory = true)
  [
      Images.new(@root, 'images', volume: @volume),
      Files.new(@root, 'files', volume: @volume)
  ]
end

#is_root?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/alchemy/custom/model/el_finder/paths/root.rb', line 5

def is_root?
  true
end

#with_sub_dirs?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/alchemy/custom/model/el_finder/paths/root.rb', line 9

def with_sub_dirs?
  true
end