Class: EacTemplates::Modules::Base::File

Inherits:
Abstract::File show all
Includes:
FsObject
Defined in:
lib/eac_templates/modules/base/file.rb

Instance Method Summary collapse

Methods included from FsObject

#self_ancestor

Methods inherited from Abstract::File

#content, #path

Methods inherited from Abstract::FsObject

#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

#basenameObject



15
16
17
# File 'lib/eac_templates/modules/base/file.rb', line 15

def basename
  ancestor_found.if_present(&:basename)
end

#found?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/eac_templates/modules/base/file.rb', line 19

def found?
  ancestor_found.present?
end