Class: EacTemplates::Modules::Base::Directory
Instance Method Summary
collapse
Methods included from FsObject
#self_ancestor
#build_child, #children
#applier, #applier_class, assert, by_subpath, #category_module, #path_for_search, #path_for_search_prefix, #raise_not_found, #source_set, #type, #type_list
Instance Method Details
17
|
# File 'lib/eac_templates/modules/base/directory.rb', line 17
delegate :child, to: :owner
|
#children_basenames ⇒ Hash<Pathname, Symbol>
20
21
22
23
24
|
# File 'lib/eac_templates/modules/base/directory.rb', line 20
def children_basenames
owner.ancestors.each_with_object({}) do |e, a|
ancestor_children_names(e, a)
end
end
|
#found? ⇒ Boolean
27
28
29
|
# File 'lib/eac_templates/modules/base/directory.rb', line 27
def found?
children.any?
end
|