Class: EacTemplates::Abstract::File

Inherits:
FsObject show all
Defined in:
lib/eac_templates/abstract/file.rb

Instance Method Summary collapse

Methods inherited from 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

#contentString

Returns:

  • (String)


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

def content
  path.read
end

#pathPathname

Returns:

  • (Pathname)


20
21
22
# File 'lib/eac_templates/abstract/file.rb', line 20

def path
  raise_abstract_method __method__
end