Module: Bucky::Utils::YamlLoad
- Included in:
- Core::TestCore::TestCaseLoader, TestEquipment::PageObject::BasePageObject, Tools::Lint, Config
- Defined in:
- lib/bucky/utils/yaml_load.rb
Instance Method Summary collapse
-
#file_sort_hierarchy(path) ⇒ Array
Sort files to hierarchy.
-
#load_yaml(file) ⇒ Hash
Load yaml(include erb).
Instance Method Details
#file_sort_hierarchy(path) ⇒ Array
Sort files to hierarchy
19 20 21 |
# File 'lib/bucky/utils/yaml_load.rb', line 19 def file_sort_hierarchy(path) Dir.glob(path).sort_by { |f| f.split('/').size } end |